Facebook应用“通过{APP_NAME}"重定向;到现有页面 [英] Facebook apps redirecting "via {APP_NAME}" to an existing pages
问题描述
我在Facebook上创建了一个应用. 借助此应用程序,用户可以在自己的墙上发布.一切正常,但是当用户单击出版物上的通过{APP_NAME}"链接时,我想指定一个重定向到的URL.目前,它正在重定向到 https://www.facebook.com/apps/application.php?id = APP_ID
I created an app on Facebook. Thanks to this app, the users can publish on their wall. All works fine, but I would like to specify an url to redirect to when the user click on the link "via {APP_NAME}" on a publication. For the moment, it's redirecting to https://www.facebook.com/apps/application.php?id=APP_ID
推荐答案
使用通过应用程序名称"链接文本出现在应用程序发布的故事之外的结果导致:
Link with text "via Application Name" that appear aside of stories published by applications lead to:
- 应用程序画布URL-如果应用程序在应用程序设置中配置了画布URL
- 应用程序站点URL-如果应用程序配置了站点(而非画布)URL
- 应用程序配置文件页面-如果应用程序具有与应用程序关联的常规Facebook页面,并且在应用程序设置中未指定画布URL
- 应用程序页面-如果未定义与应用程序或Canvas/站点URL相关的页面
您不能使此链接指向完全不同的URL.
You cannot make this link to point to completely different URL.
如果您仍然需要重定向到上述资源之外的其他资源,则可以配置应用程序站点/画布URL,并在用户使用指定的fb_source
参数登陆到您的应用程序后从那里进行重定向.
If you still need a redirection to resource other than outlined above you can configure Application Site/Canvas URL and do redirection from there once users land to your Application with fb_source
parameter specified.
fb_source
可能包含不同的值,因此您可以决定是否要进行重定向,虽然没有完整的文档说明,但是有一些示例:
fb_source
may contain different values so you can decide if you want to do a redirection, it's not documented in complete way but there are some examples:
喜欢"按钮文档 :>
fb_source
-发生点击的流类型(主页",配置文件",搜索","ticker","tickerdialog"或其他")和故事类型("oneline"或多行"),并带有下划线.
fb_source
- the stream type ('home', 'profile', 'search', 'ticker', 'tickerdialog' or 'other') in which the click occurred and the story type ('oneline' or 'multiline'), concatenated with an underscore.
发送按钮文档 :>
fb_source
-发生点击的故事类型(消息",组",电子邮件").
fb_source
- the story type ('message', 'group', 'email') in which the click occurred.
fb_source
也可能是feed
(可能还有其他地方记录的值或根本没有记录的值).
fb_source
may be also feed
(and probably more values that documented elsewhere or not documented at all).
这篇关于Facebook应用“通过{APP_NAME}"重定向;到现有页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!