facebook-graph-api

How to fix 'Facebook has detected MyApp isn't using a secure connection to transfer information.' error in Laravel

核能气质少年 提交于 2020-08-24 05:40:30
问题 I am trying to connect my app to facebook login with Laravel and socialite package.But i don't know why facebook show me this error. I searched internet but i couldn't find anything .How can i fix this error ? I thought that if i make my connection with https it will work but after making https again error appears. My code in laravel: web.php Route::get('login/{provider}', 'SocialController@redirect'); Route::get('login/{provider}/callback','SocialController@Callback'); SocialController.php

Facebook Graph API not returning email

最后都变了- 提交于 2020-08-18 06:25:12
问题 I have the following code: $fb = new Facebook([ 'app_id' => $appId, 'app_secret' => $appSecret, 'default_graph_version' => 'v2.9', ]); $oAuth2Client = $fb->getOAuth2Client(); $tokenMetaData = $oAuth2Client->debugToken($accessToken); dump($tokenMetaData); $graphUser = $fb->get('/me?fields=first_name,last_name,email', $accessToken)->getGraphUser()->asArray(); dump($graphUser); The output for the above is the following: $metaData : [ "app_id" => "..." "application" => "My App Name" "expires_at"

Facebook Graph API not returning email

北城以北 提交于 2020-08-18 06:25:06
问题 I have the following code: $fb = new Facebook([ 'app_id' => $appId, 'app_secret' => $appSecret, 'default_graph_version' => 'v2.9', ]); $oAuth2Client = $fb->getOAuth2Client(); $tokenMetaData = $oAuth2Client->debugToken($accessToken); dump($tokenMetaData); $graphUser = $fb->get('/me?fields=first_name,last_name,email', $accessToken)->getGraphUser()->asArray(); dump($graphUser); The output for the above is the following: $metaData : [ "app_id" => "..." "application" => "My App Name" "expires_at"

Is there any API for fetching metadata of article using Facebook Open Graph Object Debugger?

こ雲淡風輕ζ 提交于 2020-08-12 02:59:53
问题 I want to fetch metadata of any web-page using Facebook Open Graph Object Debugger. We can get it from this URL: Open Graph Object Debugger Example: Open Graph Object Debugger for Google It will provide all the information related to that URL. Is there any way to get this information using API(in JSON format)? 回答1: Yes, via the API URL Object described here and in even more detail here. Note that you can issue a POST request to this URL to force a refresh. You can even get additional data

Is there any API for fetching metadata of article using Facebook Open Graph Object Debugger?

南笙酒味 提交于 2020-08-12 02:59:06
问题 I want to fetch metadata of any web-page using Facebook Open Graph Object Debugger. We can get it from this URL: Open Graph Object Debugger Example: Open Graph Object Debugger for Google It will provide all the information related to that URL. Is there any way to get this information using API(in JSON format)? 回答1: Yes, via the API URL Object described here and in even more detail here. Note that you can issue a POST request to this URL to force a refresh. You can even get additional data

Transparent image background become white after posting on facebook page by Graph-APi (Javascript)

一世执手 提交于 2020-08-10 19:47:36
问题 Strangely my transparent image background become white after posting it on facebook page through graph api. This is my original image which has transparent background: But after posting it on facebook I am getting this one which has white background: For getting the original image link, I am checking the height and width of the image object from response and then just getting the source from it. FB.api( '/'+photoID, 'GET', {"fields":"images"}, function(response) { if (!response || response

Transparent image background become white after posting on facebook page by Graph-APi (Javascript)

夙愿已清 提交于 2020-08-10 19:46:06
问题 Strangely my transparent image background become white after posting it on facebook page through graph api. This is my original image which has transparent background: But after posting it on facebook I am getting this one which has white background: For getting the original image link, I am checking the height and width of the image object from response and then just getting the source from it. FB.api( '/'+photoID, 'GET', {"fields":"images"}, function(response) { if (!response || response

Facebook scraper uses incorrect DNS data > my site is not gettng scraped

纵然是瞬间 提交于 2020-08-04 06:09:07
问题 I recently moved one of my sites (gezondbenjij.nl) to a new hosting account. This resulted in a new IP address. Unfortunately, since the move, the Facebook scraper cannot find my site on the new IP address. It still uses the old IP. All DNS settings are correct, and every browser/client/tool finds the correct site at 178.22.57.204 (gezondbenjij.nl). Except for Facebook.. The facebook scraper lands in my old hosting account. So I guess their hostfile or DNS cache still holds the old data. Even