Embedded Facebook feed on website not possible after Graph Api 2.5? - facebook-graph-api

I've been coding a website using and modifying Bootstrap template. End of summer I left the site as it was, but once returning there recently I noticed the Facebook activity feed (newests posts and such) had dissappeared from my front page. Reading from Facebook Developers; after the release of Graph Api 2.5 adding Facebook feed on your website is no longer possible? Is there any other way to get the Facebook feed back on the site? I had been using iframe on my site while it was still working.

There are two main steps involved in embedding Facebook page feed in your website- 1. Getting Facebook Access Token, 2. Calling the Graph API passing the access token.
1. Getting the access token - Here is the step by step process to get the access token for your Facebook page. - Embed Facebook page feed on my website. As per this you need to create an app in Facebook developers page which would give you an App Id and an App Secret. Use these two and get the Access Token.
2. Calling the Graph API - This would be pretty simple once you get the access token. You just need to form a URL to Graph API with all the fields/properties you want to retrieve and make a GET request to this URL. Here is one example on how to do it in asp.net MVC. Embedding facebook feeds using asp.net mvc. This should be pretty similar in any other technology as it would be just a HTTP GET request.
Sample FQL Query: https://graph.facebook.com/FBPageName/posts?fields=full_picture,picture,link,message,created_time&limit=5&access_token=YOUR_ACCESS_TOKEN_HERE

Related

Can anyone help me to create instagram integration using touch.facebook.com?

i need help with instagram integration..
so basically i want to create an instagram integration from my website.
I already prepare:
Change my instagram app to business/creator account
Connect to facebook from "edit profile"
Create a page that has similar name with IG acc
and here is the reference that i want to build, https://kol.lemon.cm/settings/connect-social-media
i tried to use the login button from developers.facebook.com, but i dont have any "onboarding steps" like the way the website has it.
And the access token that is generated from that site can successfully getting my instagram data, while from my access token, i can't get any facebook page connected with it
[First step using touch.facebook.com](https://i.stack.imgur.com/t8KZX.png)
[Second step using touch.facebook.com](https://i.stack.imgur.com/P4YJv.png)
[Third step using touch.facebook.com](https://i.stack.imgur.com/MpdPN.png)
if i use fblogin from developers.facebook.com, i dont get any onboarding page like that, which i found it very helpful for my users to complete the instagram integration
I already implement the facebook login, and already got the access token but still cant get the data from instagram integration process.. while in that site, it can give me the data from instagram integration process

Facebook's Graph API posts are not visible?

I want to publish posts on a page using Facebook API. I’m an admin of the page.
I’ve done these steps:
Created an app in dev mode
Received page access token
Made a post using Facebook Graph API
A post appeared on the page. But unfortunately no one sees it. Only me.
What am I missing? Is it because the app in dev mode? If yes, is there any way to post on a page without app review?

Facebook Graph Api, From field is missing of visitors posts of a page

I'm pretty new to Facebook API. I'm Admin for one Facebook Page. My Facebook app is in the development phase.
by using my credentials I generated long live user token and by using that, I generated permanent page access tokens.
I followed this article
https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing
I'm fetching feed of page it is returning almost all details except for "FROM" field of visitor posts, how to get these also ??. I'm using page access tokens only for fetching.

django rest-auth Facebook registration

I am trying to register users via Facebook using django rest-auth.
As per the installation docs here, a rest call to register a user via facebook requires an "access token" and "code". I know what an access token is, but what is "code"?
First of all, you need to create a Facebook Application in the developers page. You will get a Facebook app code and a secret.
For using the /rest-auth/facebook/ method from the django-rest-auth, you need to send the access code (obtained using the javascript SDK) and the code of the Facebook Application.
Finally, before using this method, you have to go the the application back-office and create a social application, using the Facebook app code and the secret.

How to read Facebook Insights for a Native/Desktop app programmatically

Unfortunately I'm struggling to understand the documentation provided by Facebook.
This is the scenario:
- Some of my iPhone Apps are also registered as Native/Desktop Apps on Facebook in order to support the Facebook Audience Network.
- I'm building a tool in python which will retrieve data from the reporting API in order to run some automated analysis on specific metrics (request, impressions and so on).
The question is: how do I retrieve this data?
The documentation for the reporting API is here: Reporting API
However I'm struggling with the access token.
It says that I could use the specific App Token available here: App Tokens
However by using such token, I get an error saying that app tokens can't be used for Desktop/Native Ads.
What is the correct way to do it then? Here is where I struggle to understand Facebook Documentation.
My guess is that I should use a User Access Token instead, generated for a user that is also the admin of the App for which I want to retrieve the insights.
What really freaks me out is that apparently, this can't be done with normal HTTP calls only but it requires instead to go through the Facebook Login Dialog. I also need to create another Facebook (web) app because there is no way to get a simple "User Object"... Everything needs to start and go through a registered Facebook App. And there's no way to go through these steps by using backend code only.
So... to recap... in order to read the Insights for a Native/Desktop Facebook App (APP_A), I have to:
- Create a new Web Facebook App (APP_B)
- Create a web interface somewhere for APP_B) which will trigger the Facebook Login Dialog and request the read_insights permission.
- Login through this web interface and generate a User Access Token
- Put this User Access Token in my backend code and run the scripts that retrieve the data provided by the Reporting API for APP_B
Really... to me... it doesn't make any sense to create a new Facebook App in order to access the data of another Facebook App.
Isn't there another better, simpler, quicker, cleaner way to achieve the same final result?