Re: [NYC-rb] [OT] Facebook Graph and Privacy Question.

From: Aidan F.
Sent on: Monday, October 24, 2011 9:22 AM
Seems like it does need the token - visiting https://graph.facebook.com/cocacola in a browser returns the JSON fine but https://graph.facebook.com/cocacola/posts says it requires a token.  If you don't need access that is particular to a user, you could authenticate yourself with "allow offline access" and just have your app always use your personal token.

On Mon, Oct 24, 2011 at 8:33 AM, Stephen Schor <[address removed]> wrote:
Let's I enjoy Coca Cola (http://www.facebook.com/cocacola / https://graph.facebook.com/cocacola/).
I like them so much that I want to use the FB API to pull in their recent posts and spit it onto my blog.

FB.api('/cocacola/posts?limit=2&fields=message',
 function(responce){
    if (responce.data.length > 0){
    // build a string of the responses and put
    // them on the page with DHTML
    }
});

This used to work.
Now it returns an object with the error "An access token is required to request this resource."

I've poured over their documentation for a while - but I'm sure someone on the list has more experience with FB graph.

I find it hard to believe I need to go through an OAuth song-and-dance to grab info from the graph API that's publicly available
on their FB page.

Stephen




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Stephen Schor ([address removed]) from NYC.rb.
To learn more about Stephen Schor, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy