Java – how to handle Facebook login pages

Facebook recently allowed the creation of pages without any Facebook users associated with them Facebook also allows these homeless login applications How should the application detect and handle this situation?

>Exit Facebook > create new Facebook Page > you have a new Facebook page, id = 249578561746447 > log in to your Facebook application. > Facebook auth callback returns current user access token > string – user id = 100002923107961 (not 249578561746447?) > Error – "/ me" connection returns "false" > error – "/ 100002923107961" returns "false" > frustrating Facebook auth documentation doesn't say it's possible > frustrating no documentation about this > frustrating report this problem to Facebook blocked - see here

Has anyone else even entered this field? How can I go from the magic user with ID 100002923107961 to the page with ID 249578561746447?

Solution

If / me returns false, use FB Logout checks out users and displays them a message stating that they need to log in with a user account instead of a page account Facebook clearly knows that this is a design mistake

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>