问题描述
我可以在页面标签应用程序中获取Facebook粉丝 page-id
,而不授权用户使用javascript?而且如果我授权用户,那么我得到 signed_request
,它只包含
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_request
which only contains
["algorithm","code","issued_at","user_id"] not "page" object. How can I get "page" object?
我想添加类似于 Pinterest页面应用的页面标签应用,其中最初得到 UserId
/ UserName
,之后,如果我们打开该应用程序,那么它将根据插入的 UserId
/ UserName
。
I want to add Page tab app similar to Pinterest Page App, which initially get UserId
/UserName
and after that if we open that app then it will directly open according to inserted UserId
/UserName
.
推荐答案
p>否,你不能。
页面信息只发送在使用JavaScript发布到您的应用程序的signed_request中,您无权访问POST数据。但是您可以使用服务器端语言轻松访问。
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.
您可能会发现很多PHP代码。对于C#,您可以使用下面的代码..
You might found a lots of PHP code for it..for C# you can use below code..
string signedR = Request["signed_request"];
我希望这可能对您有帮助... @ Mirant
I hope this might be helpful to you...@Mirant
这篇关于使用javascript在页面标签应用程序中获取Facebook粉丝page-id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!