How to base64 encode an image from the facebook api

后端 未结 4 1590
北恋
北恋 2021-01-23 06:21

I am attempting to convert an image url provided by the facebook api into base64 format with cURL.

the api provides a url as such:

https://fbcdn-sphotos-         


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-23 07:04

    Maybe this won't help much but it seems that the original picture (ending with _o) does not need gda nor oe oh parameters

    to get the original profile picture you can do:

    var username_or_id = "name.lastname" //Example
    get_url ("http://graph.facebook.com/$username_or_id/picture?width=9999")
    

    hth

提交回复
热议问题