MyBB Community Forums

Full Version: Facebook's json_decode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can now log-in on my forum using Facebook Smile

However, the code below doesn't seem to work for me:
$user = json_decode(file_get_contents('https://graph.facebook.com/me?access_token=' .$cookie['access_token']));

1. Have you been able to fetch variables like $user->id?
2. Is it not working because i am on free hosting?






do other json functions work?
(2010-10-23, 02:39 PM)pavemen Wrote: [ -> ]do other json functions work?
See the screeny of the error
[attachment=20323]

Anyways, i'll be releasing the plugin which will allow users to log-in only with facebook.

Later, if a get a premium hosting, i'll add auto-registration of users.
right now, its not a json issue, its a file_get_contents problem according to the very first line of the error messages
hmm, seems like my host disabled file_get_contents.