图形API链接 - 名称,标题,描述图片不显示 [英] Graph Api Link - name, caption, description picture not showing up

查看:116
本文介绍了图形API链接 - 名称,标题,描述图片不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道下面的代码有什么问题?

does anyone knows what's wrong with the below code that I have?

我似乎无法获得名称,标题,描述和图像显示在Facebook用户的新闻Feed,但链接和消息显示,他们的工作。

I just couldn't seem to be able to get the name, caption, description and image shown on the Facebook user's news feed but the link and message show up and they worked.

WebClient wc= new WebClient();
wc.Encoding = Encoding.UTF8;
wc.UploadString("https://graph.facebook.com/me/links", null, "access_token=" + <facebookAccessToken> + "&link=" + <a valid url> + "&message=" + <a valid message> + "&name=SomeName" + "&caption=SomeCaption" + "&description=SomeDescription" +"&picture=http://mywebsite.com/photo.jpg");

有另一种方法吗(发布链接

Is there another way to do it (post a Link to the News Feed of Facebook) in ASP.NET code-behind?

推荐答案

即使图表api指定 https://graph.facebook.com/me/links 接受名称,描述和图片作为参数,这些参数什么也不做。有一个错误提交(http://bugs.developers.facebook.net/show_bug.cgi?id=14782,您需要注册或登录才能查看该页面)来解决此问题。

Even though the graph api specifies that https://graph.facebook.com/me/links accepts name, description and picture as parameters, these parameters do nothing. There is a bug filed (http://bugs.developers.facebook.net/show_bug.cgi?id=14782, you will need to sign up or login to view the page) to fix this issue.

您还可以使用 https://graph.facebook.com/发布链接我/ feed 并传递相同的参数。这样做会产生您使用links方法所期望的行为。

You can also post links using https://graph.facebook.com/me/feed and passing the same parameters. Doing this yields the behavior you expected with the links method.

这篇关于图形API链接 - 名称,标题,描述图片不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆