Facebook,张贴到墙上,使用我/照片,在2.1 Facebook? [英] Facebook, post to wall, using me/photos, in 2.1 Facebook?

查看:197
本文介绍了Facebook,张贴到墙上,使用我/照片,在2.1 Facebook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到3年前的Unity项目,并使用Facebook图表,我确定它是 1.0



你可以发布到用户的墙上,如下所示:

  private byte [] imageAsBytes; 
Texture2D im = ...您的图像
imageAsBytes = im.EncodeToPNG();
字典< string,object> dct = new Dictionary< string,object>
{
{message,Marketing message here},
{picture,imageAsBytes}
};
Facebook.instance.graphRequest(
我/照片,HTTPVerb.POST,dct,completionHandler);

已经知道了好几个月了,现在有一个改变。 >

截至今年8月8日,Facebook 2.1需要,我很困惑,简单来说,这是否仍然在2.1?



简而言之,如何将图像发布到用户的墙上,在2.1?



注意 - 这里是找到重要的资源CBRoe在下面提到...








请注意,FB.FeedShare()的唯一问题是,据我所知,您实际上不能发布图像(当然,您可以链接到

解决方案

这不以任何方式弃用。但是,由于API v2.0,您需要获得Facebook审核并获得批准的必要权限,才能向普通用户提出请求。




$ b $是的,这是一个相当大的变化 - 但是这就是为什么它通过很多渠道提前宣布。我们都知道IT世界的移动和变化有多快 - 所以我认为你不能把责任归咎于Facebook。如果你三年多的时间是走出去(这个特定的一个),那么你只需要去找出资源,a)列出改变的内容,以及b)当前的状态是什么。开发者部分同时执行。更改日志已经被提及,例如现在需要获得权限的问题也在启动Facebook登录页面,在基本指南的顶部。



此外,Facebook积极通知您有关更改 - 如果您让他们。转到 https://developers.facebook.com/settings/developer/contact/ 您可以在这里找到几个选项,通过电子邮件了解具体的内容。


Considering a Unity project from ~3 years ago, and using Facebook graph I'm pretty sure it was 1.0,

You could post to a user's wall like this:

private byte[] imageAsBytes;
Texture2D im = ... your image
imageAsBytes = im.EncodeToPNG();
Dictionary<string, object> dct = new Dictionary<string, object>
    {
    { "message", "Marketing message here" },
    { "picture", imageAsBytes }
    };
Facebook.instance.graphRequest(
       "me/photos", HTTPVerb.POST, dct, completionHandler );

As has been made known for many months now, there is a change to this coming.

With Facebook 2.1 being required as of this Aug 8, I'm rather confused about, simply, whether this still works in 2.1?

in short, how to post an image to the user's wall, in 2.1?

Note - here's where to find the important resource CBRoe mentions below...


Note that the only problem with the alternative, FB.FeedShare() is that, as far as I understand, you can not actually post an image (sure, you can link to an image at a URL).

解决方案

This isn’t deprecated in any way. But since API v2.0 you need to get the necessary permission reviewed and approved by Facebook, before you can ask normal users for it.


And yes, this is a rather major change - but that's why it was announced way ahead of time, via a lot of channels. We all know how fast the IT world moves and changes- so I think you can not put the blame on Facebook here. If you were "out of the game" (this particular one) for over three years, you just have to go and find the resources that a) list what's changed, and b) what the current state of things is. And the developer section does both. The changelog has already been mentioned, and for example the need to get permissions reviewed now is also mentioned on the starting page for Facebook login, right at the top under Essential Guides.

Plus, Facebook actively informs you about changes - if you let them. Go to https://developers.facebook.com/settings/developer/contact/ where you'll find several options to get informed about specific stuff via e-mail.

这篇关于Facebook,张贴到墙上,使用我/照片,在2.1 Facebook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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