English 中文(简体)
页: 1 隔离墙的后源图像只能张贴链接
原标题:iOS Facebook Can t post source image to wall can only post links

因此,从对这一问题一线的解读来看,我越来越清楚地看到,我不能把我的照片和我的墙上的形象/恐惧作为源头。 我在一个隔离墙站展示形象的唯一途径是连接互联网上的图像。 我只能把照片贴在照片册上。

因此,我的问题是,谁知道我怎么能够把我的不应用形象贴在我的脸谱墙上(而不是把图像贴在照片上)?

最佳回答

就像你一样,我几周前就存在同样的问题。 你们是否还收到错误信息,从“FBCDN形象不允许在溪流。

似乎你已经指出了这一点,但因为Facebook对开发商提供的信息不甚广,而其他读者也可能从中获益。

  • Your app can easily send photos to the user s Facebook photo album
  • Your app can easily post to the user s News Feed
  • You can even use Facebook Graph API to pick up the ID of the photo you just sent, and use that to assemble the URL for the photo (the URL works just fine – typing it into your browser will show the photo, no problem)
  • BUT your app simply cannot use the photo URL in any News Feed Posts. And contrary to what one might assume, this is not a bug or any other problem you could fix, but a Facebook policy since summer, 2010.

这里,塞尔维亚统计局的官方资料表明他们的决定:

“18岁:21岁”

We no longer allow stream stories to contain images that are hosted on the fbcdn.net domain. The images associated with these URLs aren t always optimized for stream stories and occasionally resulted in errors, leading to a poor user experience. Make sure your stream attachments don t reference images with this domain. You should host the images locally.

最后,如果你必须设立“Fed”新闻员额,那么,你需要把照片放在自己的服务器上,并在邮局与照片链接。 虽然一些成功的开发商会认为,如果你想要使你能够评估,如果它成为应用程序储存的下一个大事的话,则避免使用自己的服务器(见《脉动新闻》这里的决策者评论:

就我而言,由于我这么说,而且我是一位小型开发商,因此,开始在我自己的服务器上铺设脚架是没有道理的,因此,我刚刚决定把照片上上载到用户的Facebook账户中,使用光帽来告诉用户朋友我所说的话,而不是挂号。

问题回答

I think you should use a server with some php scripts - then use ASIHTTP library or sth similar to upload your photo there - as a result you should get a link to the photo on your server. then use it while publishing to fb.

声音是音响的,但并不说坏——ASIHTTP非常直截了当,有吨的实验室印片在净值上载照片。

Facebook now allows images in the wall posts that are hosted on fbcdn.net domain. It may not completely answer your question as you don t want the images in the photo album. But here are the steps.

  1. Get photo_upload permission from the user
  2. Once granted, upload photo to an album (users can only post photos to their own albums)
  3. In the callback, you get the id of the photo object just posted.
  4. Get properties for this photo object via another graph api call.
  5. In the callback, you get all the properties - search for the object url
  6. Create a wall post and use the retrieved url (in step 5) in the attachment.

它将展示隔离墙的图像。 然而,如果你不希望把图像上上载到用户名册,那么你仍然需要在某个地方接收图像,然后才能包括链接。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签