Getting facebook page with app_scoped_user_id is not possible anymore?

后端 未结 4 797
遇见更好的自我
遇见更好的自我 2020-12-09 05:46

Below url gaves the user\'s facebook page till yesterday. But it\'s not working anymore.

https://www.facebook.com/app_scoped_user_id/xxxxxxxxxxxxx/

Is there

4条回答
  •  眼角桃花
    2020-12-09 06:08

    This is no longer possible and will not be, according to https://developers.facebook.com/blog/post/2018/05/01/facebook-login-updates-further-protect-privacy/

    Your best bet going forward is to open the Facebook site and search for the user name like so:

    JavaScript:

    Assume user is an object with a property called name that contains the user's name.

    window.open("https://www.facebook.com/search/str/".concat(encodeURIComponent(user.name)).concat("/keywords_users"));
    

    In most cases this will allow you to quickly find the person in question, given that you can still display their profile picture using the app-scoped ID on whichever site lists users. It's not great, but it may be of help to someone. We've resorted to this solution in our CRM.

提交回复
热议问题