Is there a way to get the list of a the Pages that a Facebook Page likes? - facebook

Pages on Facebook can like other Pages. Is there a way to get the list of Pages that a Page (not a User) likes via the Open Graph API? I don't see that documented anywhere.

It's similar to users:
/[page_id or name]/likes
edit:
You don't need any permissions, You can ask about any pages' likes

Related

Fetching posts from a page made only by the page using Graph API

I am trying to fetch all posts from a fan page using Graph API. I can do it in many pages using {page-id}/posts, but it does not work in all cases (example, facebook.com/cocacola). If I use {page-id}/feed, I can get it all, but I will get many user posts too. I could do it with FQL, but since FQL is not going to be supported anymore, I don't want to use it.
I want to get everything the page posts, even if it is a link, photo or share.
Something like this:
graph.facebook.com/{page-id}/feed?from.id={page-id}
The edge /{page-id}/posts will return all posts made by the page.
[1] https://developers.facebook.com/docs/graph-api/reference/v2.0/page/feed

Facebook Open Graph Analytics

I am trying to figure out how many likes came from a facebook fangate page.
For example,
http://example.com/ has 1000 likes.
The example's fangate page has a "Like" button to http://example.com/
Does Facebook's open graph analytics have a tool to bring up data on where these links come from?
Is there a way to pull up data to analyze this? Say is there a way I was able to have data that told me
200 Likes came from example fangate page
300 likes came from some other site etc.
You have analyics for the Facebook Fanpage. Not for a URL.
If you are the administrator of the page. acess this link http://www.facebook.com/YOUR_PAGE_HERE/page_insights_likes
You cant see the source of like, but you can see the types of likes. If come from the page, from a like button, from a popup, from timeline, from celphone...

Get all pictures and related comments from a Facebook Group page

I need to get all picture and their related comments which has been made to a particular facebook group page. How can I achieve this through facebook api?
Sure, you just need to make a request to graph.facebook.com/GROUP_ID/feed
Example here: https://developers.facebook.com/tools/explorer?method=GET&path=173972555961507%2Ffeed
The Graph API is really easy to figure out. You have the base url (graph.facebook.com) and then you can make requests to any object on facebook (user, page, group, checkin, etc) by just calling graph.facebook.com/OBJECT_ID. It's all on the front page: https://developers.facebook.com/docs/reference/api/

Any way to pull likes by dates from facebook graph api? (New Likes instaed of Global Likes)

I basically need an access to a fanpage's likes by dates, i mean.. not the global likes when you access the graph but the ability to see how much likes the page got yesterday/today..
Any way to do that?
Have a look at https://developers.facebook.com/docs/reference/fql/insights/#page_users - you (by which I mean the user of your app) need to be admin of the page though. You get page_fans, *_adds, *_removes, etc.. On how to execute FQL using the Graph API: https://developers.facebook.com/docs/reference/fql/

What is the API for Facebook 'profile stream' aka wall posts?

Is there an API call, and if so, which call to get the 'posts to my wall from myself and others' on Facebook? It seems like it could be filtered out of the Facebook stream API, but it's not clear how that works to me.
This link seems to imply it's possible:
http://developers.facebook.com/news.php?blog=1&story=225
You want to do an FQL query like this:
SELECT actor_id, message FROM stream WHERE source_id = <user id> limit 50
You will probably want to select a few more fields, you can see what is available here: http://wiki.developers.facebook.com/index.php/Stream_%28FQL%29
Here it is.
Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=...
https://developers.facebook.com/blog/post/465
You can publish stories to people who like your Open Graph Page the same way you write a Facebook post from your own wall. The stories appear in the News Feeds of people who have clicked the Like button on the Open Graph Page.
You can also publish using our API. If you associate your Open Graph Page with a Facebook app using the fb:app_id meta tag, you can publish updates to the users who have liked your pages via the Graph API.
First you need to get an access token for your app.
Check out the blog post, it covers everything you need.