I’ve tried and tried to get Open Graph to work on my own without any luck. I’ve also tried alternative options such as ajax call works in Chrome, Firefox but not in IE?, but that has serious issues.
What I would like is a complete solution for using Open Graph to retrieve all wall posts given a specified Facebook profile ID. It needs to get the access token without having the user login to facebook. edit: I have an application with an App ID and App Secret. Shouldn’t I be able to use this to get the Access_token? I want users without a facebook account to be able to see the wall posts of this kids page (that’s kind of the whole point of building a separate site).
For what it’s worth, this is for a site for a kid with a terminal brain tumor… which kind of leaves me in a position where I can’t make demands (like spend $50 on an SSL or “just use facebook”).
edit I think the only thing I need is to get the access_token. This can’t be that difficult.
so my solution to this problem is simple; you still continue to use AJAX to perform the request to facebook but not directly.
so your code will look something like this:
then on the
ajax-handler.phpfile you will put all the stuff needed to retrieve theaccess_tokenand other information.a server-side pseudo code (i’m using php here) will look something like this, but you need to use the php sdk for a better coding…
and this is the result: