问题描述
我正在使用feed方法从我的网站发布到我的网站使用asp.net和jquery / javascript最初它工作正常,但突然在链接到最后添加fb_ref =默认我不知道为什么它发生了想要删除,请帮助我。我需要尽快回答,请帮助我。谢谢。您可以通过使用.htacess来解决这个问题,通过添加以上您当前的规则将从& amp; ; fb_action。
RewriteRule ^(。*?)& fb_action / $ 1 [L,R = 301]
但这是解决方法,正确的方法是使用共享对话框,而不是Feed对话框。
您可以看到 Feed对话框和共享对话框
之间的主要区别
Feed对话框
您可以将Feed对话框添加到您的应用程序,以便人们可以发布个人故事到他们的时间表。这包括您的应用管理的字幕和来自分享内容的人的个人评论。
共享对话框
共享对话框提示用户将个人故事或Open Graph故事发布到其时间轴。这不需要Facebook登录或任何扩展权限,因此它是在网络上启用共享的最简单方法。
所以在你必须使用:
Feed对话框==>为您开发的页面,以便您可以更改htaccess
共享对话框==>对于您不能更改的页面它的代码
I am using feed method for posting into my facebook wall from my website using asp.net and jquery/javascript initially it works fine but suddenly in the link at the end added fb_ref=Default I don't know why it happened I want to remove that please help me. I need answer as soon as possible kindly help me. Thanks.
You can resolve this issue via using .htacess by adding this above your current rules will remove everything starting from the &fb_action.
RewriteRule ^(.*?)&fb_action /$1 [L,R=301]
But this is work around and the correct way is using Share Dialog rather that Feed Dialog.
The main different between Feed Dialog vs Share Dialogas you can see
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.0https://developers.facebook.com/docs/sharing/reference/share-dialog
Feed Dialog:
You can add the Feed Dialog to your app so people can publish individual stories to their timeline. This includes captions that your app manages and a personal comment from the person sharing the content.
Share Dialog
The Share dialog prompts a person to publish an individual story or an Open Graph story to their timeline. This does not require Facebook Login or any extended permissions, so it is the easiest way to enable sharing on web.
So in you have to use:
Feed Dialog ==> for Pages you developed so you can change htaccess
Share Dialog ==> for Pages you can not change it's code
这篇关于Facebook feed方法链接默认添加fb_ref =默认在最后如何删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!