从页面ID和应用程序ID找到页面选项卡URL [英] Find out Page Tab URL from Page ID and application ID
问题描述
我正在构建一个可以安装在Pages(页面选项卡应用程序)上的Facebook应用程序,并希望将用户重定向到他们的页面选项卡,只知道应用程序ID和页面ID。
I'm building a Facebook app that can be installed on Pages (a Page Tab app), and would like to redirect my users to their Page Tabs, knowing only the app ID, and the Page ID.
例如我的应用程序安装在此页面上:
http://www.facebook.com/coldplay
其ID为 15253175252
,我的应用程序ID为 174314562666399
。
Let's say for example that my app is installed on this page:
http://www.facebook.com/coldplay
whose ID is 15253175252
, and my app ID is 174314562666399
.
我知道我只能使用其数字ID访问该页面: http://facebook.com/15253175252
重定向到Coldplay页面。
I know I can access the Page using only its numerical ID: http://facebook.com/15253175252
redirects to the Coldplay page.
我可以使用此URL访问页面选项卡: http://www.facebook.com/coldplay/app_174314562666399
。 有没有办法让Facebook将我重定向到此页面选项卡,只使用页面ID和应用程序ID?
And I can access the Page Tab with this URL: http://www.facebook.com/coldplay/app_174314562666399
. Is there a way to get Facebook to redirect me to this Page Tab using only the Page ID and app ID?
推荐答案
您可以使用sk = app_app_id参数传递APP ID,但是在使用页面ID而不是Pagename时您将失去它 - 它不会随请求重定向。
You can pass in the APP ID with the sk=app_app_id parameter, but you'll lose it when using the Page ID instead of the Pagename - it's not redirected along with the request.
之前使用过一个解决方法:您需要从您所拥有的信息中编写FB重定向验证URL。
There's a workaround I've used before though: you'll need to write a FB redirect proof URL from the information you have.
所以:
http://facebook.com/pages / - / 15253175252?sk = app_174314562666399
那就是:
http:// facebook .com / pages / - / [page_id]?sk = app_ [app_id]
http://facebook.com/pages/-/[page_id]?sk=app_[app_id]
这篇关于从页面ID和应用程序ID找到页面选项卡URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!