Change Facebook Canvas button from 'Go to App' to 'Login with Facebook'

人盡茶涼 提交于 2019-12-11 18:09:55

问题


I created a facebook canvas. I'm looking for a way to change the canvas button from 'Go to app' to 'Login with Facebook' as shown on the attached pictures. Did some research but couldn't find anything on this matter. Any help would be appreciated. Thanks


回答1:


One is an App that is embedded in Canvas: that's the "Go To App" one.

The other is a Website that is NOT embedded in a canvas, that's the "Login" one.


To change it, you'd need to use a custom login button to return the user to a holding webpage that is not in the Canvas. (You also need to set this "website" up in the Facebook Developers App settings page). From the landing webpage, you can kick the user back to the canvas once they've accepted the app permissions. Probably not worth the hassles for a button that no-one reads?




回答2:


Just add a respone=token parameter in the URL and it shows "Login with facebook" and not "Go to app"

http://www.facebook.com/dialog/oauth/?scope=publish_stream&client_id=198583033513325&redirect_uri=myUrll&response_type=token&display=popup



来源:https://stackoverflow.com/questions/10560439/change-facebook-canvas-button-from-go-to-app-to-login-with-facebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!