How to remove auxiliary products from FB app?
Lol, those products cannot be removed. FB doesn’t have options for that. Here is an answer https://developers.facebook.com/bugs/1270595229673799
Lol, those products cannot be removed. FB doesn’t have options for that. Here is an answer https://developers.facebook.com/bugs/1270595229673799
I saw a case where Chrome had installed WidgetBlock which was blocking the Facebook script. The result was exactly this error message. Make sure you disable any extensions that may interfere.
TL;DR set FB._https to true before calling FB.init. Like so: FB._https = true; FB.init({ /* your app id and stuff */ }); Explanation If you unminify the Facebook JavaScript SDK, you’ll see that its basically an object literal with a bunch of properties. One of these properties is _https, which is a boolean. This property … Read more
I find a solution. for MAC Use this one to get YOUR_RELEASE_KEY_ALIAS: keytool -list -keystore /Users/***/Documents/keystore/***.jks and this one to get your release keyhash: keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore /Users/***/Documents/keystore/***.jks | openssl sha1 -binary | openssl base64 It works for me.
I have figured out how to modify the Facebook tutorial for the Login API with ReactJS. Firstly, in the react component where you want the Login link, include this code: componentDidMount: function() { window.fbAsyncInit = function() { FB.init({ appId : ‘<YOUR_APP_ID>’, cookie : true, // enable cookies to allow the server to access // the … Read more
I have done with share_open_graph method with object like this,, FB.ui({ method: ‘share_open_graph’, action_type: ‘og.shares’, action_properties: JSON.stringify({ object : { ‘og:url’: ‘http://astahdziq.in/’, // your url to share ‘og:title’: ‘Here my custom title’, ‘og:description’: ‘here custom description’, ‘og:image’: ‘http://example.com/link/to/your/image.jpg’ } }) }, // callback function(response) { if (response && !response.error_message) { // then get post content … Read more
I was also getting the following error even when using the standard embed code that Facebook provides. Uncaught Error: invalid version specified in sdk.js The first thing to check is that you’re including the version number in your FB.init call: FB.init({ appId: ‘your-app-id’, xfbml: true, version: ‘v2.8’ }); The now-outdated fix… …was to make a … Read more
**Disclaimer – This is purely speculation. Seems to have solved my problem. I’ve had this issue on a recent project. I think this is a latency issue. The Facebook SDK requires that <div id=”fb-root”></div> be on the page. This should be the first thing after the opening body tag. After this, you may see your … Read more
You can get access token using FB.getAuthResponse()[‘accessToken’]: FB.login(function(response) { if (response.authResponse) { var access_token = FB.getAuthResponse()[‘accessToken’]; console.log(‘Access Token = ‘+ access_token); FB.api(‘/me’, function(response) { console.log(‘Good to see you, ‘ + response.name + ‘.’); }); } else { console.log(‘User cancelled login or did not fully authorize.’); } }, {scope: ”}); Edit: Updated to use Oauth 2.0, … Read more
You need to fill the value for Website with Facebook Login with the value http://localhost/OfferDrive/ to allow Facebook to authenticate that the requests from JavaScript SDK are coming from right place