Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Muhammad Humayun 49 posts 79 karma points
    Jun 09, 2011 @ 23:18
    Muhammad Humayun
    0

    Facebook access token issue

    Hi, I really like your component. Because of some changes from Facebook, it has stopped working. Could you please help in this regards, thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 09, 2011 @ 23:22
    Jan Skovgaard
    0

    Hi Moazzam

    I have deleted your other post - please don't double post it can possibly create to much unwanted confusion :-)

    Do you know what Facebook has changed that might be the cause of this plugin not working anymore?

    /Jan

  • Frej Raahede Nielsen 26 posts 59 karma points
    Jun 09, 2011 @ 23:36
    Frej Raahede Nielsen
    0

    Facebook has just erased the reason for this plugin to exist:

    It's bullshit to call it "Operation developer love", but what can you do... Hopefully they will see their mistake and revert it.

     

    Graph API PROFILE_ID/feed and PROFILE_ID/posts now requires access_token

    As stated last week, the Graph API PROFILE_ID/feed/ for a Page, Application, User or Group and PROFILE_ID/posts for a Page or User now requires a valid access_token to access the wall or posts of the corresponding object (where previously no access_token was required). This also affects direct FQL queries to the stream table, when querying for posts on a wall.

     

    https://developers.facebook.com/blog/

  • Frej Raahede Nielsen 26 posts 59 karma points
    Jun 09, 2011 @ 23:37
    Frej Raahede Nielsen
    0

    Permalink to the blog post: https://developers.facebook.com/blog/post/510/

  • Muhammad Humayun 49 posts 79 karma points
    Jun 10, 2011 @ 00:56
    Muhammad Humayun
    0

    Thanks Frej for the above info.

    Yes Jan, thats the issue explained above. Please have a look at the above links.

     

  • Claushingebjerg 939 posts 2574 karma points
    Jun 16, 2011 @ 19:32
    Claushingebjerg
    0

    Could some please post the exact steps to fix this issue. I didnt really get much wiser by reading the above.

    Any help appreciated

  • Muhammad Humayun 49 posts 79 karma points
    Jun 21, 2011 @ 11:10
    Muhammad Humayun
    0

    Have any body found a solution?

  • Frej Raahede Nielsen 26 posts 59 karma points
    Jun 21, 2011 @ 14:01
    Frej Raahede Nielsen
    0

    Currently there is no solution.

    Facebook has shut down the possibility to extract wall posts without an access token. This means that whoever wants to see a certain feed needs to be logged in to facebook. So even though you set your permissions for your wall posts in your facebook account to be public, they will not be public through the graph api (which this package is using).

    I think this is affecting a lot of people who were using it, so hopefully fb will realize that it was a mistake and revert the update.

  • Muhammad Humayun 49 posts 79 karma points
    Jun 21, 2011 @ 15:42
    Muhammad Humayun
    0

    Hi Frej

    I have fixed it and now this plugin is working fine for me.

    How can i supply you the files? or should i explain here the fix and you can update the plugin accordingly?

    Thanks

    Muhammad

  • Frej Raahede Nielsen 26 posts 59 karma points
    Jun 21, 2011 @ 22:22
    Frej Raahede Nielsen
    0

    Hi Muhammad,

    Wow, I'd love to see how you managed that!

    Can you post a link to a working example? Preferably on the package home page: http://raahede.com/projects/umbraco/facebook-status-feed.aspx. I'd rather not share my email in an open forum :-)

  • Muhammad Humayun 49 posts 79 karma points
    Jun 22, 2011 @ 13:19
    Muhammad Humayun
    0

    Hi Fre

    I have modified the JS file for my app and added an ashx to get access_token. I dont know how can i update the whole package so that ppl can install it with the fix.

    Summary:

    Login to developers.facebook.com with the master account of your page/app.
    Create an app (even dummy app can help). Then you can be able to see app details ( App Id, API key, App Secret, Site URL etc) we need these to get access token.

    facebook generates access token session wise so we need a mechanism to get access token every time. We have to use the following URL ( with our values ) to get the access token.

    https://graph.facebook.com/oauth/access_token?client_id=<APPID>&client_secret=<APPSECRET>&grant_type=client_credentials

    It generates token like this

    access_token=274388777288941|_u1LixRfarRGGaVfJ8j1vSJNlMRGRS1Q

    and then we can use this access token for the feed

    var feedUrl = 'https://graph.facebook.com/' + facebookId + '/feed?access_token=' + accessToken;

    To process the URL to get the feed, I am using json.ashx.

    Kindly get these files from here.

    http://miangeetraders.com/FBStatusFeed.js
    http://miangeetraders.com/json.zip

    Hope you can make this fix to the plugin or you can use my idea and come with a better way to do the same thing. :-)

    Regards

    Muhammad

     

  • Sam 184 posts 209 karma points
    Sep 08, 2011 @ 14:18
    Sam
    0

    Hi Frej & Muhammad,

    Is there a new version of the facebook status now? Or some slightly more detailed instruction on how to get this working. What's the ashx file?

    I have downloaded the package and have the login details for (the cutomers) facebook page. I just need to display statuses on their company website. Just a list of the last 4 or 5 posts. If any of you can help, that'd be most appreciated.

    Thanks,

    Sam.

  • Claushingebjerg 939 posts 2574 karma points
    Sep 08, 2011 @ 14:33
    Claushingebjerg
    0

    I've actually done it a bit differently

    Your friend’s status updates:
    http://www.facebook.com/feeds/friends_status.php?id=your_facebook_id&key=your_friends_key&format=rss20

    And then sent it thorugh feedburner.com

    and then displayed the rss feed in umbraco with:

      <xsl:variable name="facebook">http://feeds.feedburner.com/yourfeed</xsl:variable>
      <xsl:variable name="rssfeed" select="umbraco.library:GetXmlDocumentByUrl($facebook, 50000)" />

     <ul id="facebookfeed">
        <xsl:apply-templates select="$rssfeed//item" />
      </ul>
  • Sam 184 posts 209 karma points
    Sep 08, 2011 @ 14:43
    Sam
    0

    Thanks Claushingebjerg,

    That seems interesting. How do you get the values for the url for the status updates?

    Have you got a workign example I can have a nosey at??

    Thanks,

    Sam.

  • Claushingebjerg 939 posts 2574 karma points
    Sep 08, 2011 @ 15:04
    Claushingebjerg
    0
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
      version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary" 
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary ">


    <xsl:output method="xml" omit-xml-declaration="yes"/>


    <xsl:param name="currentPage"/>

        <xsl:template match="/">

          <xsl:variable name="facebook">http://feeds.feedburner.com/Ceramicspeed</xsl:variable>
      <xsl:variable name="rssholstebro" select="umbraco.library:GetXmlDocumentByUrl($facebook, 50000)" />

        
    <xsl:if test="$currentPage/ancestor-or-self::* /@id = 1375">


     <ul id="facebookfeed">
             <li><href="http://www.facebook.com/pages/CeramicSpeed/198535013526569"><img src="/css/img/facebook.jpg" /></a></li>

        <xsl:apply-templates select="$rssholstebro//item" />
       

      </ul>

          </xsl:if>
     

      
    </xsl:template>

    <xsl:template match="item">
      <xsl:if test="position() &lt;= 3">
      <li>
        <p>
        <href="{link}" target="_blank" title="{title}">

          <span><xsl:value-of select="substring (pubDate, 1, 16)"/></span><br/>
          <xsl:value-of select="substring (title, 1, 100)" disable-output-escaping="yes"/>... <nobr><b>Read more &#187;</b></nobr>
        </a>
        </p>

      </li>
      </xsl:if>
     
    </xsl:template>
    </xsl:stylesheet>
  • Sam 184 posts 209 karma points
    Sep 08, 2011 @ 15:25
    Sam
    0

    lol, sorry, by 'working example' I meant a link to your website or wherever you've got this feed up and running ;)

    Also a bit confused with 'your_facebook_id' and 'your_friends_key' and how you get those values.

    Just wanted to see it in action.

    Sam.

  • Claushingebjerg 939 posts 2574 karma points
    Sep 08, 2011 @ 15:27
  • Sam 184 posts 209 karma points
    Sep 08, 2011 @ 15:46
    Sam
    0

    Looks great, works well, and nice website too! Seems a possible alternative to the status feed javascript :)

    Sam.

  • Frej Raahede Nielsen 26 posts 59 karma points
    Sep 08, 2011 @ 23:20
    Frej Raahede Nielsen
    0

    Hi Muhammad,

    Thanks a lot for your activity on this package. I haven't had any time to work on it myself and feel pretty bad about it. I opened the project for collaboration, and would love you to take over for me if you're interested.

    Cheers,

    Frej

Please Sign in or register to post replies

Write your reply to:

Draft