Facebook Social Network Does Not Work
Hi all,
About the social network in tiki-socialnetworks.php:
- Authorize Twitter works properly, means that twitter_token is fetched and stored in table tiki_user_preferences.
- Authorize Facebook does not work like Twitter does. I have gotten the access_token already generated by Facebook (by going to this URL: https://graph.facebook.com/oauth/access_token?client_id=xxxx7610062xxxx&redirect_uri=http://www.example.com/tiki-socialnetworks.php?request_facebook&code={facebookCode}&client_secret=xxxxxxxx6da677f1945be7cdxxxxxxxx). The problem is on the socialnetworkslib.php where it failed to execute this syntax: $fp = fsockopen("ssl://graph.facebook.com", 443) and made log status "can't connect". My question is: how to fetch the access token that has been generated by Facebook and store it in tiki_user_preferences under this syntax $this->set_user_preference($user, 'facebook_token', substr($ret,13));? Hope somebody here can help me.
Thank in Advance