简体   繁体   中英

facebook login button is not showing to my blog

i am enabling Facebook login button to my blog by follow this https://developers.facebook.com/docs/facebook-login/login-flow-for-web/

I've done everything perfect but its not showing i am getting these when i goto browser console.

Invalid App Id: Must be a number or numeric string representing the application id. all.js:56 FB.getLoginStatus() called before calling FB.init().

what to do?

and i also integrate google+ sign in button and its working perfect check it in working here. http://hashtaginside.blogspot.com/

You need an app id for your log-in workflow to work. To get one you must register as a Facebook Developer. Then after that go to https://developers.facebook.com/apps and create a new app. Then you will be able to use Facebook log in.

Then for your log-in button change the src to

http://www.facebook.com/plugins/login_button.php?app_id={your_app_id}&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FLEdxGgtB9cN.js%3Fversion%3D40%23cb%3Dfd83dd978%26domain%3Dhashtaginside.blogspot.com%26origin%3Dhttp%253A%252F%252Fhashtaginside.blogspot.com%252Ff2e65db4e4%26relation%3Dparent.parent&locale=en_US&max_rows=1&sdk=joey&show_faces=true&width=200

Where {your_app_id} is the app id Facebook gave you.

Once you have that if you need more assistance let me know I can take you further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM