Error in Search for posts using Facebook Graph API - facebook-graph-api

I am new to this Facebook Graph API.
I want to search for Facebook posts.
https://graph.facebook.com/search?q=query&type=post
On the internet I have found the above request and said that it would give me what I want. But when I tried that it asks for the access token. I don't know where to add it.
Please help me. Thank you.

You canĀ“t search for posts anymore, Public Post Search is deprecated. You can only search for the types specified in the docs: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.4#search
That being said, you need to create an App to get an Access Token and there are different ones. Please read the docs to find out how to get the different Access Tokens, here are some links for you:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/

Related

Facebook Graph Api extended user access token

I've been searching all over the place how to extend the user access token. I've found this site, but i don't want to share my access token with them (obviously). Can someone point me in the right direction?
https://smashballoon.com/custom-facebook-feed/docs/get-extended-facebook-user-access-token/
The official docs: https://developers.facebook.com/docs/facebook-login/access-tokens
And an additional link: http://www.devils-heaven.com/facebook-access-tokens/
Btw, that tutorial in your question is really just a tutorial, they are using the API Explorer, which is an important tool made by Facebook.

How to get all liked objects of an user including posts, photos, urls with facebook graph api

This is cherrie. I am facing an issue, regarding facebook feed reading. I need to access all liked objects of an user including posts, photos, urls with graph api."me/likes" returns only pages. In earlier versions, we can achieve this using "user_activities" permissions, but now it is deprecated. Is there any way to achieve this, with present permissions. Help would be appreciated.
No, there is no way to access all likes, you can only get access to Page likes as you have found out.

Facebook API: Get people list who like a page

Is there any way to get all people list who liked our page using Facebook API? I looked at the documentation but i am not able to find that.
Can any one help me out. Thanks
Simple answer: There is no endpoint for that in the Graph API. You can get some breakdowns via the Page Insights, but not the actual people which like your Page.
See
https://developers.facebook.com/docs/graph-api/reference/page
https://developers.facebook.com/docs/graph-api/reference/v2.4/insights
https://developers.facebook.com/docs/graph-api/reference/v2.4/insights#page_users

How to Use Scope in Facebook Graph API C# sdk

Before asking this question, I have searched a lot, but did not find a single working example for this. I want to retrieve the page access token for one of my pages. I read that scope should be passed as parameter with permission manage_pages. But its not working.
Here is my code: http://pastebin.com/GNVimbFX
Basically there's two steps that you need to do
Retrieve access_token with manage_pages permission
Get /me/accounts which would return you page access_token
You can read more here

Facebook Page - Get Post feedback and impression via Graph API

I'm trying to get some insights on a list of Posts by a Page on Facebook.
To be specific, I want to get the information highlighted in this blog post via the API.
But I can't figure out how, anyone knows how?
As far as I know it's only possible using the "stream" table. So you've got to use FQL to query this data. Using this technique you'll only get the impressions directly. Feedback rate can be calculated by adding #comments and #likes and dividing the result by #impressions. Hope they'll add this to the insights graph api as well.
MartinHN
Refer to https://developers.facebook.com/docs/reference/api/#analytics
If you are trying to aggregate multiple pages or a page other than the requesting app then you may need grant read_insights permissions to your application.
Refer to http://developers.facebook.com/docs/reference/api/insights/