Publishing to Location Pages using Facebook's Graph API - facebook

When using Facebooks' Graph API:
I'll send GET to {user-id}/accounts?access_token=123CorrectToken456 which returns list of Facebook pages and access_tokens for each page that I have rights to. This allows me to GET and POST to those pages.
But how do you access and post to a page's locations? (see Dunkin' Donuts location pages for example)
I've tried using the {page-id}/locations which returns the locations and gives me read access but I can't post to those pages. ???

Related

How to get data regarding facebook page mentions via facebook graph api

I tried getting data using Graph API Explorer code below:
GET request:
page_id/tagged
But I'm getting only few posts. I created 2 new posts from 2 different users and tagged my page. I get mentioned notifications in my page, but it doesn't reflect in graph API.
Is there any other way to track page mentions or Am I doing it the wrong way? Also, I need the user id of the user who has tagged my page.
Could anyone point me in the right direction? I'm confused.
I was using user access token. I used Page access token, now I'm getting the data.

Get Visitor Posts from Facebook Graph API

I am fetching feeds from the following link:
https://www.facebook.com/wellsfargo/
I want to extract data from "Visitors Posts" section. Using facebook Graph API, it returns me feeds only from individual users. I want to get those feeds too in which above page is mentioned
its available in latest version of graph API. see here.
/v2.11/{page-id}/visitor_posts
Shows all public posts published by page visitors on the page. in case if you are calling below graph api v2.7 you will get this data with /{page-id}/tagged.

Getting demographics details of people who have liked a post on a Facebook Page

I'm trying to get demographics information (mainly Location) regarding the people who like a particular post on a page owned by someone else.
For example, for a post on CocaCola's FB Page, I'm trying to get the reactions for a particular post by using this following string in the Graph API Explorer: 40796308305_10155753622733306/?fields=reactions{name,link,type}
Is there a way to also get location of the person who reacted to the post?
I'm using Graph API v2.6

How do I retrieve the posts on a Facebook page using the Facebook's Graph API?

I'd like to use Facebook's Graph API to retrieve the official posts from a given page. This means that the wall posts must be the one's made by the page's administrators and must exclude comments made on the posts. I'm aware that the base URL for the Graph API is http://graph.facebook.com/, but I'd like to use it without an access token. Is there anyway to do this?
No. You can't retrieve the posts using a given page without an Access Token.
You can retrieve posts by performing a GET request to the following end point (and of course using a valid Access Token):
https://graph.facebook.com/{page-id}/posts?access_token=YOUR_ACCESS_TOKEN
You can also choose particular field(s) by specifying them in the URL. For example:
https://graph.facebook.com/{page-id}/posts?access_token=YOUR_ACCESS_TOKEN
&fields=message,type,likes
You can try out this example in the Facebook Graph API explorer.

how can i get all the FB graph id's associated with a domain?

taking imdb.com for example. imdb.com has hundreds of pages with a FB graph ID (one per each movie)
I want to fetch ALL FB graph ID's belonging to imdb.com.
for example: the FB graph ID for http://www.imdb.com/title/tt1515091/ is "113109502056333"
I know this because I can "like" the URL, then using the "Graph API Explorer" I can see the ID of the liked URL.
Question: How can I get ALL FB graph id's of URL's belonging to a single domain? please use imdb as an example.
keep in mind, I do NOT want to send FB a batch of predetermined URL's. My website has hundreds of URL's and will not be able to compile a list of all URL's.
Thanks!
You can't! There is no way to get all OpenGraph objects that reside under the domain via Graph API or FQL.
OpenGraph pages are linked to URL and not to domain.