Facebook query for commenter name not working [duplicate] - facebook-graph-api

This question already has answers here:
Facebook Graph API Comment Doesn't Return From
(2 answers)
Closed 5 years ago.
I have a problem retrieving information regarding the person commenting on the post using the graph API. I'm retriving as follow.
/comment-id?fields=message,from

https://developers.facebook.com/docs/graph-api/changelog/version2.11#gapi-90-pages:
/page/* — User information will not be included in GET responses for any objects owned by (on) a Page unless the request is made with a Page access token. This affects all nodes and edges that return data for objects owned by a Page.

Related

How to create a Django post feed that gradually renders posts in batches as you scroll down? [duplicate]

This question already has an answer here:
infinite scrolling using django
(1 answer)
Closed 11 months ago.
I am trying to make a Django post feed without pagination, but hypothetically, once there are more than a thousand posts, it would be too heavy to always render all of the posts available. So I am trying to find a way to mimic what many other websites with infinite feeds (like Twitter for example) do so that it renders only a batch of posts, and then renders additional ones once you scroll down to the end of the already rendered ones.
I am using a function view instead of the class view.
Thank you in advance for any help.
It sounds like you should have an API to return paginated results from Django side,
and in your front end side, fetches say 5-10 posts at a time
GET /posts/?offset=0&limit=10
And you can implement a JS function that is hooked to the onScroll event that looks for if you have reached the end of the post already fetched. There are many libraries that do this for you by the way.
Here's a reference guide for basically exactly what you are looking for too: https://palewi.re/posts/2010/11/07/django-recipe-twitter-style-infinite-scroll/

The concept of django admin when adding information with foreign keys [duplicate]

This question already has answers here:
Django: adding an "Add new" button for a ForeignKey in a ModelForm
(3 answers)
Closed 6 years ago.
I really can't find the right words to Google this so I am here to find help. I want to use the idea of the admin page in django where when you add an information and it has a foreign key, a plus sign is present beside the field and with that, you can add data that pops up in a new window and after saving, the new data automatically reflects the selection.
Okay. I solved the add button. Now what I want is the data will appear after saving in the select drop down. I haven't had the answer to it yet
This is easy, if even the other model(which is your foreign key) is added to the Admin. It directly shows the plus button. But, if you don't want that.
I guess you are searching for InlineModelAdmin.

How does opt-out of a tracking-pixel site work?

So i found a tracking pixel from this site www.scorecardresearch.com, and they offer an opt-out from their Program.
My question is: How do could they do this, how would they know i've opt-ed out after i closed the session(there are no cookies set from this site)?

How to delete all data from Ember Data store? [duplicate]

This question already has answers here:
Ember.js Data how to clear datastore
(7 answers)
Closed 9 years ago.
In the Ember.js application I'm working on, that uses Ember-data, once the user gets to a point on the screen, I want to delete all state stored in the ember-data Store associated with the application, and start with a clean slate that can start pulling data from the server. Anyone know how to do it?
I don't think there is an easy way. The only way ATM is loop over all your DS.Model classes and destroy the records individually.
App.Model.all().forEach(model) ->
model.destroy();
App.Model2.all().forEach(model) ->
model.destroy()

How do I know if the event has a custom profile picture or just the default picture through Open Graph API? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Getting Facebook profile pic from user (via Graph) - detect if it's a blank (i.e. default) image?
As on facebook site, it will display the creator's the picture if the event does not have a custom profile picture, I want to know if there is a flag to indicate it.
Thanks
There is no flag to indicate this. /eventid/picture just returns the URL, no flags. For more information http://developers.facebook.com/docs/reference/api/event/