ios 如何使用 iPhone 为 facebook 创建新相册
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6664256/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to create new photo album for facebook with iPhone
提问by James Lobo
I'm able to push a image from my iPhone to the facebook wall successfully. But when I try to push my 2nd image the image is uploaded successfully on the wall but appears side-by-side instead of appearing as the different wall post.
我能够成功地将图像从我的 iPhone 推送到 facebook 墙上。但是,当我尝试推送我的第二张图片时,该图片已成功上传到墙上,但并排显示,而不是显示为不同的墙贴。
This is because the images uploaded will be added to the same photo album. So is there any way to push these images to new album so that every album contains 1 image?
这是因为上传的图片会被添加到同一个相册中。那么有没有办法将这些图像推送到新相册,以便每个相册包含 1 张图像?
回答by C Abernathy
- First make sure you have publish_stream permission to create a new album.
- Then to create a new album, make a Graph API call to https://graph.facebook.com/me/albumswith parameters for the access token, the album name, and the album description. If the album is created successfully the new album ID will be returned.
- Then make a call to https://graph.facebook.com/NEW_ALBUM_ID/photoswith the access token and other photo parameters to upload your photo to the new album.
- 首先确保您拥有创建新专辑的 publish_stream 权限。
- 然后要创建新专辑,请使用访问令牌、专辑名称和专辑描述的参数对https://graph.facebook.com/me/albums进行 Graph API 调用。如果相册创建成功,将返回新的相册 ID。
- 然后使用访问令牌和其他照片参数调用https://graph.facebook.com/NEW_ALBUM_ID/photos将您的照片上传到新相册。
By default, if you do not specify any album and just push photos to the me/photos endpoint your photos will end up in an album automatically created for your application.
默认情况下,如果您不指定任何相册而只是将照片推送到 me/photos 端点,您的照片将最终出现在为您的应用程序自动创建的相册中。