0

put_object メソッドを使用して、Koala gem を使用して Facebook ウォールに画像を投稿しています。私が抱えている問題は、私が期待している大きな画像ではなく、壁にサムネイルとして (キャプション付きで) 画像が表示されることです。サムネイルをクリックすると、Facebook のフォト ビューアーで写真がポップアップ表示されると思いますが、指定した画像の URL に移動するだけです。これは、ウォールへのリンクを投稿するときに期待する動作に似ているようです。また、post_picture を使用してみましたが、成功しませんでした。ここに私が期待しているもののスクリーンショットがあります: http://cl.ly/image/472a2H333z13

私のストリーム権限には以下が含まれます:

read_stream,offline_access,manage_pages,publish_stream,create_event,rsvp_event,sms,user_photos,friends_about_me,friends_status,friends_activities,friends_likes,friends_interests,read_insights,friends_photos

次のコードは機能しますが、期待どおりには動作しません。これは、put_object を使用して投稿された画像がタイムラインにどのように表示されるかのスクリーンショットです: http://cl.ly/image/1x3X1K0k2l2D

put_object('me', 'feed', :message => 'this is the message', :name => 'this is the caption', :picture => 'http://www.socialvolt.com/img/producttour/listen.png', :source => 'http://www.socialvolt.com/img/producttour/ssPublish.jpg')

このコードはまったく機能しません:

put_picture('me', 'feed', :message => 'this is the message', :name => 'this is the caption', :picture => 'http://www.socialvolt.com/img/producttour/listen.png', :source => 'http://www.socialvolt.com/img/producttour/ssPublish.jpg')

:picture と :source の違いもわかりません。

誰かが私が間違っていることを理解するのを手伝ってくれますか?

4

2 に答える 2

1

これがコードです。

 graph = Koala::Facebook::API.new(cookies[:acess_token])
 begin                  
   graph.put_picture(
                     "https://dl.dropboxusercontent.com/u/71317935/banners/coy_copper.jpg",
                     "image/png",
                     {:message => "introduces Some information"}
                   )
 rescue Exception => e
   render :text => e.message and return
 end
于 2013-07-29T14:47:37.140 に答える
0

頭のてっぺんから、もっと大きな写真が必要になるかもしれません。より具体的には、幅は少なくとも 480px である必要があると思います。

コード内の画像は 480px 未満のようです: http://www.socialvolt.com/img/producttour/listen.png http://www.socialvolt.com/img/producttour/ssPublish.jpg

これは、 User Generated Photosの経験から来ています。あなたは実際には Open Graph アクションを使用していないので、Facebook がこれと同じルールを一般的な写真のアップロードに適用するかどうかはわかりません。

于 2013-05-06T21:29:39.947 に答える