How to get the picture of Facebook User using Koala gem?

前端 未结 6 1261
伪装坚强ぢ
伪装坚强ぢ 2021-02-09 17:14

I am trying to fetch the picture of a Facebook user\'s friends using their facebook ids, but using the following code returns nil instead of the picture url...

The code

6条回答
  •  臣服心动
    2021-02-09 18:08

    I got the image working by directly using url specified by Cody in image tag as below

    
    
    img  src="http://graph.facebook.com/10000010000001/picture" />
    
    img  src="http://graph.facebook.com/user_profile_id/picture" />
    
    
    

提交回复
热议问题