Get Facebook fan page-id in page tab app using javascript

前端 未结 2 1903
别跟我提以往
别跟我提以往 2020-12-12 06:09

Can I get Facebook fan page-id in page tab app without authorizing user using javascript? And also if I authorized user and after that I get signed_reques

2条回答
  •  庸人自扰
    2020-12-12 06:26

    No, you can not.

    The page info is send only in the signed_request that gets POSTed to your app so with JavaScript, you have no access to POST data. But you can easily access with server side language.

    You might found a lots of PHP code for it..for C# you can use below code..

    string signedR = Request["signed_request"];
    

    I hope this might be helpful to you...@Mirant

提交回复
热议问题