グラフ オブジェクトの全体像を把握できますか?
例:
//take id,name,picture,description from pages, that I like:
http://graph.facebook.com/me/likes?fields=id,name,picture,description&access_token=[token]
しかし、これらすべてのページの全体像を 1 回のクエリで取得するにはどうすればよいでしょうか? これは可能ですか?
グラフ オブジェクトの全体像を把握できますか?
例:
//take id,name,picture,description from pages, that I like:
http://graph.facebook.com/me/likes?fields=id,name,picture,description&access_token=[token]
しかし、これらすべてのページの全体像を 1 回のクエリで取得するにはどうすればよいでしょうか? これは可能ですか?
基本的に、画像をリクエストする必要はまったくありません。を取得したらobject_id
、大きな画像を表示したい場合は、この URL を使用するだけです -
https://graph.facebook.com/OBJECT_ID/picture?type=large
プロフィール写真の URL はもう保存しません。必要なのは、user/page_id を知ることだけで、それを介してプロフィール写真にアクセスできますobject_id
。
要素の場合は、属性<img>
に URL を配置するだけです -src
<img src="https://graph.facebook.com/OBJECT_ID/picture?type=large" />