Tag Archives | facebook

PHP: Facebook SDK – Check Facebook User Permissions

Method 1: use method permissions We use the code following: If we var_dump($fbPermissions), we’ll receive the result below: array(2) { [“data”]=> array(1) { [0]=> array(15) { [“installed”]=> int(1) [“basic_info”]=> int(1) [“read_stream”]=> int(1) [“status_update”]=> int(1) [“photo_upload”]=> int(1) [“video_upload”]=> int(1) [“create_note”]=> int(1) [“share_item”]=> int(1) [“publish_stream”]=> int(1) [“publish_actions”]=> int(1) [“user_birthday”]=> int(1) [“user_hometown”]=> int(1) [“user_location”]=> int(1) [“user_work_history”]=> int(1) [“user_photos”]=> […]

Read full story Comments { 0 }

Facebook PHP SDK – can’t logout (PHP SDK v3.1.1)

I am using the official Facebook PHP SDK for my website. My application lets the users log in and out. Problem is, you can’t really logout although i use the example of facebook. When i click “Logout” on my site the user information is still visible and the logout button is still displayed. Here is […]

Read full story Comments { 0 }

PHP: Facebook SDK – SSL – CURL doesn’t verify a certificate

PHP: Facebook SDK – SSL – CURL doesn’t verify a certificate If we use Facebook SDk and receive an error like: Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in C:\AppServ\www\xxx\fb\src\base_facebook.php on line 889 Open file base_facebook.php Goto line 873 and add […]

Read full story Comments { 0 }