Fetch 'top stories' by facebook api - facebook-graph-api

It seems now Facebook API does not get the 'top stories' even the setting of my Facebook account is top stories. Indeed, it shows the 'recent stories'; so I want to ask is there anyway I can get the top stories (in the same order we see in our news feed) instead of recent stories by graph api or FQL?
Thanks,
Moti

Related

Instagram Post Insights - Organic v/s Paid Breakdown

According to Instagram (GRAPH) documentation, it's straight forward to get the insights of a post or media object (even story).
Unlike the Facebook insights of a post, Instagram (GRAPH) does not provide paid/organic breakdown on a post level for available metrics like impressions and engagement.
This creates a big issue for marketing teams because they cannot differentiate organic from paid performance.
Another way to try to hack this is by fetching all related Ads created on this post. I didn't find anyway to read Ads, AdSets or Campaigns related to a post ID. The only way I can think about this is to manually select the Ads related, on a condition that those Ads were created by the same Ad Account we have access to.
So my question is: Is it possible to get organic vs paid breakdown on the performance metrics of an Instagram post through the API?
from Facebook Developer support I know that the Instagram Graph API only reports organic results (so if a IG post received 300 likes, 200 of which from paid activities, an API call for the media insights will only return a value of 100 likes).
At the same time as far as I know the Facebook Ads API only returns the paid performance, not the organic ones.
For this reason you should be able to report the two sources separatedly, since the metrics don't overlap. The problem arises if you need to join the two sources (for example getting the like total of a single post), since as far as I know there's no matching variable between the media from Graph API and the Ads from Facebook Ads

Facebook API - How to retrieve a users timeline?

I can't find out how to get the content displayed on a users profile from the Facebook API. It's easy to get all statuses or so but then the photos isn't included...
I simply want to get all posts (including photos, check-ins etc.) that is shown on a user's profile on facebook.com and I want them in the same order.
I assume this is possible to do through the API, would seem strange to me otherwise, so I'm wondering; how is this done?

How to get facebook page users who likes the fan page using facebook graph api

the fan page 335667609918222 count is 2 but when i tried to access the below url https://graph.facebook.com/335667609918222/likes?access_token=CAAG4yxdE1UsBAFu8L0ZCdlFWWeJy2hCOnYtr9ZB42LvbqlqsPs1PAwHfZB3RIMVGXFcmwDMR6xVTvCjU1Pp3ler6FG17SGzY6lW5frZBaaJaUsfksHNnC3jvl9sjNgaTXi22C9VQsw95VdRWHluLdfy5fai0ij0yBNMmp64dObycqumuCBeO3O0JQj8q8STBRS9JZA2wTVQZDZD I am always getting the empty data.
Please help me out
The Facebook Graph API doesn't support that.
You can only query: "Does this user like Facebook Page X?", not "Give me a list of all users that Like Facebook Page X".
Also, your access_token is in the URL, you should probably keep that private.

How do I get the list of facebook apps a user is an admin of using the Facebook Graph API?

Am using the Facebook Ads API to run ads. For running Mobile App Ads, I need to retrieve the apps which the logged in User is an admin of. I couldn't figure out from the documentation as to how to get this list of apps. Some stack overflow threads (How to get if a user is admin of a page (isAdmin) using the Facebook Graph API?) suggest requesting /me/accounts , but the just returns a list of facebook pages the user is an admin of. Could someone suggest some documentation in this direction?
The Graph API call /me/applications/developer returns all applications of which the user is an admin.
Read more here: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/applications/developer
Doesn’t seem to be possible with the current API v2.0 – but it is with FQL, using the app_role table:
SELECT application_id FROM app_role
WHERE developer_id = me() AND role = 'administrators'
Test it in Graph API Explorer
(And yes, FQL is deprecated, but it will still be around for at least two years. And before they completely shut it off, they will implement query-like features in a future API version according to what I’ve heard from FB employees.)

Facebook Graph api - post to friends timeline issue

when I tried to post to my friends timeline using facebook graph api, I got
{"error":{"message":"(#200) Feed story publishing to other users is disabled for this application","type":"OAuthException","code":200}}
Enabling something while creating access_token will resolve this problem ?
If so what should I enable.
Thanks,
Padmaprasad G
This feature has been removed the 6th February : http://developers.facebook.com/roadmap/completed-changes/
Look here how to do it Facebook App: Will fb.api method post on friend's wall?
Yes, this was announced few months back and took effect on Feb 6th - http://developers.facebook.com/roadmap/completed-changes
Removing ability to post to friends walls via Graph API
We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail. If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.
The workaround is to use the Feed Dialog which allows users to post the same content, but choose the user they want to post it to.