Facebook RSS feeds have stopped working

前端 未结 2 1788
醉酒成梦
醉酒成梦 2020-12-24 02:48

We are showing feeds from Facebook on our website. Until yesterday, we were able to retrieve the feeds in JSON format using the URL below:

https://www.facebo         


        
相关标签:
2条回答
  • 2020-12-24 02:49

    Finally I was able to get the Facebook page feeds back on my website. Here goes the steps I followed to restore the feeds:

    Step 1: I logged into Facebook developer portal and created new Facebook Application (Website). You can find the details on how create a Facebook App from the following link: How to Create Facebook App

    On the newly created app you will find the "App ID" and "App Secret" values.

    Step 2: On my website, I used the "App ID" and "App Secret" to retrieve an "access_token" from Facebook. I used C#, so the line of code I used was:

    string access_token = "";
    try {
        access_token = webClient.DownloadString("https://graph.facebook.com/oauth/access_token?client_id=616255239999&client_secret=989898989898acec7c3aabbccddf84b66&grant_type=client_credentials");  
    }
    catch {}
    

    Replace client id with app id and client secret with app secret values copied from the previous step. If the values are correct you will get a response like:

    access_token=616255878567492343|UYgAYWXYztpFGRawnZ2VlTE
    

    Step 3: Now use the access token retrieved from the previous stage to call Facebook Graph API to get the feeds:

    string facebookjson = webClient.DownloadString("https://graph.facebook.com/v2.2/1730999949494/feed?access_token=616255878567492343|UYgAYWXYztpFGRawnZ2VlTE");
    

    The construct of the URL would like below:

    https://graph.facebook.com/v2.2/[your_facebook_page_id]/feed?access_token=[your_access_token_value]

    And voila!! You get the feeds from your Facebook page in a JSON response.

    0 讨论(0)
  • 2020-12-24 03:03

    See the ChangeLog. https://developers.facebook.com/docs/apps/changelog

    90-day deprecations (effective Wednesday, January 28, 2015).

    The Pages JSON feed (e.g. https://www.facebook.com/feeds/page.php?id=%2019292868552&format=json) is now deprecated and will stop returning data from Jan 28, 2015 onwards. Developers should instead call the feed edge on the Graph API's Page object: /v2.2/{page_id}/feed.

    And the announcement from Facebook Team. https://developers.facebook.com/bugs/1539780319626180/

    Firstly, I want to apologise. Due to a bug the Page RSS feed was removed yesterday in addition to the Page JSON feed.

    We are restoring the Page RSS feed immediately. The fix should be deployed in the next 24 hours and I'll let you know as soon as the RSS feed is functional again.

    Please note that we will be deprecating the Page RSS feed in the first half of this year. We'll announce a 90 day breaking change as we did for the Page JSON feed.

    The reason we're deprecating the feeds is due to a lack of usage (versus the Graph API Page feed). We have decided to focus our efforts on adding features to and improving the quality of the Graph API Page feed endpoint.

    0 讨论(0)
提交回复
热议问题