我使用的是标准Feed Dialog
的Facebook的分享我的网站上的帖子.这个问题是由于问题导致我无法正常工作redirect_uri
.这很奇怪,因为我拥有应用程序,应用程序ID是正确的,URL是正确的...这可能是什么问题?我得到的错误是:需要有效的重定向URI.
这是我正在使用的代码:
<a href=https://www.facebook.com/dialog/feed?app_id=9999999999999&link=http://hereismylink.com/todays/&picture=http://fbrell.com/f8.jpg&name=%TITLE%&caption=testing1234&description=blablabla&redirect_uri=http://hereismylink.com>Share on Face</a>
Run Code Online (Sandbox Code Playgroud)
PS:redirect_uri和app_id是虚拟文本,通常,它们是我网站上正确的数字和字母.我不想在这里做广告.
仅供参考:sandbox mode
被关闭了
redirect facebook facebook-sharer facebook-graph-api facebook-social-plugins
我想在Facebook Like按钮和Facebook Share按钮之间分配测试点击.我知道我可以附加FB.Event.subscribe('edge.create',...)的事件处理程序来跟踪Facebook上的点击按钮,但Facebook分享按钮是否有相应的事件?FB.Event.subscribe文档中似乎没有.
facebook facebook-sharer facebook-like facebook-javascript-sdk
我在我的网站上有链接工作正常,但我注意到这些现在不起作用.
例如:http://www.facebook.com/sharer/sharer.php? s = 100&p [ url] = http://www.otlcampaign.org/blog/2013/02/04/inconvenient-truth-education-reform&p [图片] [0] = http://www.otlcampaign.org/sites/default/files/journey-for-justice-mlk-memorial.jpg&p [title] = +不方便+真相+ +教育+ '改革' !&p [摘要] =最近+事件+拥有+显示+如何以市场为导向+教育+政策+欺骗性+标记+为+%22reform,%22 +的+透出+自己+真正+破坏性+效果+上+该街道+ +和+ +中的+走廊+政府+的:
这个链接工作正常,但它没有采取自定义标题,摘要等.请帮我解决这个问题.
我没有使用元标记,因为有很多共享按钮具有不同的标题,描述,图像网址.
我已经浏览了这个网站上的现有问题,但这些解决方案很有用.例如Facebook Share不显示我的描述或我的缩略图 请提出任何建议.
上周我在我的rails应用程序中添加了Facebook和Twitter共享按钮.我认为它们工作正常,但似乎它们没有可靠加载,需要刷新才能让它们显示出来.我认为这是一个涡轮机问题,因为这些事情经常是这样我安装了'jquery-turbolinks'gem.这不是一个涡轮问题.
环顾四周后,我发现喜欢回答这样一个并同时加入 twttr.widgets.load();
到我的Twitter功能年底解决了这个问题,我已经没有运气获得 FB.XFBML.parse();
,使Facebook的分享按钮无刷新加载.在这个 Facebook开发页面上,它没有列出共享按钮作为可以用该代码修复的事情之一.
我的代码部分如下:
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk')); FB.XFBML.parse();</script>
<div class="share-buttons">
<div id="fb-root"></div>
<div class="fb-share-button" data-href="#{request.original_url}" data-width="110"></div>
</div>
Run Code Online (Sandbox Code Playgroud) javascript facebook ruby-on-rails facebook-sharer ruby-on-rails-4
我有一个带有Facebook 自定义共享链接的弹出窗口.
http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>
Run Code Online (Sandbox Code Playgroud)
如何使用u
带参数的网址http://google.com/?q=bla
?它看起来像facebook总是削减参数.
当我从我的网站分享链接时,它无法检测页面的缩略图,标题和描述......
我使用facebook linter来识别它给我这个错误的问题:"facebook URL请求了HTTP重定向,但无法遵循它."
这是linter url:https://developers.facebook.com/tools/debug/og/object? q = http% 3A%2F%2Fwww.almadenahnews.com%2Fnewss%2Fnews.php%3Fc%3D509%26id% 3D141802
这个问题最近才出现..如果有人知道如何解决它,请帮助我
请帮助我,我使用Facebook共享链接与我的网站徽标,但它没有显示图像,即使我有适当的图像尺寸,根据Facebook要求,你能帮助我,
http://www.facebook.com/sharer/sharer.php?s=+100&p[title]=SundtBMI&p[url]=http%3A%2F%2Fwww.redsignal.biz%2Fclients%2Fdemo%2Fsundtbmi%2F&p[images][0]=http%3A%2F%2Fwww.redsignal.biz%2Fclients%2Fdemo%2Fsundtbmi%2Fskins%2Fdefault%2Fimages%2FSB_logo.png&p[images][1]=http%3A%2F%2Fwww.redsignal.biz%2Fclients%2Fdemo%2Fsundtbmi%2Fskins%2Fdefault%2Fimages%2FSB_logo.png&p[summary]=When+I+stand+before+God+at+the+end+of+my+life%2C+I+would+hope+that+I+would+not+have+a+single+bit+of+talent+left%2C+and+could+say%2C+%27I+used+everything+you+gave+me%27.Throughout+life+people+will+make+you+mad%2C+disrespect+you+and+treat+you+bad.+Let+God+deal+with+the+things+they+do%2C+cause+hate+in+your+heart+will+consume+you+too.How+far+you+go+in+life+depends+on+your+being+tender+with+the+young%2C+compassionate+with+the+aged%2C+sympathetic+with+the+striving+and+tolerant+of+the+weak+and+strong.+Because+someday+in+your+life+you+will+have+been+all+of+these.When+I+stand+before+God+at+the+end+of+my+life%2C+I+would+hope+that+I+would+not+have+a+single+bit+of+talent+left%2C+and+could+say%2C+%27I+used+everything+you+gave+me%27.Throughout+life+people+will+make+you+mad%2C+disrespect+you+and+treat+you+bad.+Let+God+deal+with+the+things+they+do%2C+cause+hate+in+your+heart+will+consume+you+too.How+far+you+go+in+life+depends+on+your+being+tender+with+the+young%2C+compassionate+with+the+aged%2C+sympathetic+with+the+striving+and+tolerant+of+the+weak+and+strong.+Because+someday+in+your+life+you+will+have+been+all+of+these.When+I+stand+before+God+at+the+end+of+my+life%2C+I+would+hope+that+I+would+not+have+a+single+bit+of+talent+left%2C+and+could+say%2C+%27I+used+everything+you+gave+me%27.Throughout+life+people+will+make+you+mad%2C+disrespect+you+and+treat+you+bad.+Let+God+deal+with+the+things+they+do%2C+cause+hate+in+your+heart+will+consume+you+too.How+far+you+go+in+life+depends+on+your+being+tender+with+the+young%2C+compassionate+with+the+aged%2C+sympathetic+with+the+striving+and+tolerant+of+the+weak+and+strong.+Because+someday+in+your+life+you+will+have+been+all+of+these.
Run Code Online (Sandbox Code Playgroud) 我刚刚将prerender.io middlewave设置到我的tomcat服务器中(运行一些java webservices和一个angularjs应用程序).
服务(prerender)工作正常,我可以看到页面添加到列表中(当我发送请求模拟用户代理时).
我的问题是Facebook分享按钮(来自addthis).
基本上,如果我访问一个尚未缓存的页面并单击"在Facebook上共享"按钮,它将显示angularjs模板而不是"渲染"模板.
奇怪的是,我可以在Prerender.io admin上看到该页面.
它就像它太慢而且超时.我仍然不知道如何获得页面的非缓存版本.
在第一次错误调用Facebook缓存页面后,如果我不从Facebook对象调试器(https://developers.facebook.com/tools/debug/og/object)手动刷新它,错误的页面将保持缓存在FB上服务器,直到刷新FB缓存.
无论如何有任何关于如何解决这个问题的建议?
我可以预先缓存每一页,但我将不得不处理新的页面,我不认为这是一个很好的解决方案.
谢谢,Dem
我需要将一些AngularJS变量从我的应用程序传递到新的Facebook sharer按钮,我正在使用:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=1438439249728371";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Run Code Online (Sandbox Code Playgroud)
还有这个:
<div class="fb-share-button" data-href="http://mySite" data-type="button"> </div>
Run Code Online (Sandbox Code Playgroud)
我可以在哪里放置自定义文本以在对话框中共享?
谢谢!
javascript facebook facebook-sharer facebook-javascript-sdk angularjs
我通过Android中的分享对话框在FB上分享视频.分享完美无缺.但是,FB post id返回null.即使在上传视频之前,回调也会返回.如果我遗漏了什么,请告诉我.以下是我的代码.
public class TestFragment extends Fragment {
private CallbackManager callbackManager;
private ShareDialog shareDialog;
public TestFragment() {
// Required empty public constructor
}
public static TestFragment newInstance(String path, String json) {
TestFragment fragment = new TestFragment();
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FacebookSdk.sdkInitialize(getActivity());
callbackManager = CallbackManager.Factory.create();
shareDialog = new ShareDialog(this);
// this part is optional
shareDialog.registerCallback(callbackManager, new FacebookCallback<Sharer.Result>() {
@Override
public void onSuccess(Sharer.Result result) {
Timber.d("result.getPostId() :: " + result.getPostId());
}
@Override
public void onCancel() …
Run Code Online (Sandbox Code Playgroud) facebook ×10
facebook-sharer ×10
javascript ×3
angularjs ×2
android ×1
prerender ×1
redirect ×1
web ×1