Facebook Graph API - get a photos album ID

后端 未结 9 2172
小蘑菇
小蘑菇 2020-12-31 09:32

I\'m writing an application that uploads a photo to facebook. I\'m not supplying an album ID so an album is created on behalf of my app.

My question is: how do I get

9条回答
  •  伪装坚强ぢ
    2020-12-31 10:04

    String albumID = "https://www.facebook.com/photo.php?fbid=192570127478130&set=a.135556629846147.24342.100001754323389&type=1";
    albumID = albumID.split("&set=a.")[1];
    albumID = albumID.split("\\.")[0];
    System.out.println(albumID);
    

提交回复
热议问题