为什么这个Facebook创建相册代码创建重复的相册? [英] Why does this facebook create album code create duplicate albums?

查看:121
本文介绍了为什么这个Facebook创建相册代码创建重复的相册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个代码工作正常(因为它正确地创建了相册)。然而,它创建了两个相同的相册。我已经尝试删除消息和隐私(不是这应该改变任何东西,但仍然)。我没有尝试改变这个代码创建两个专辑的事实。我甚至已经做了很多评论,以确保它是唯一的代码发射,没有创建专辑。我后面有代码发布两个测试图片,它只会将图片发布到其中一个组。但是,我在这段代码之后有一个退出,所以我确保它是唯一的代码。

I have this code that works fine (in that it creates the album properly). However, it creates two identical albums. I've tried removing message and privacy (not that this should have changed anything, but still). Nothing I try is changing the fact that this code creates two albums. I've even gone so far as to comment it out to ensure that it was the only code firing and no albums were created. I have code after this to post two test pictures and it only posts the pictures to one of the groups. However, I have an exit after this code, so I've ensured it's the only code firing.

帮助,请!

print "Creating album\n";
try {
    $ret_obj = $facebook->api('/me/albums', 'post', array(
        'access_code' => $access_code,
        'name' => 'Coolest Album',
        'message' => 'Coolest Album containing bike stuff',
        'privacy' => array('value'=>'EVERYONE'),
        ));
} catch (Exception $e) {
print_r($e->getMessage());
}
print "Album created\n";`


推荐答案

问题不在于SDK,而是与Facebook本身。做了一些更多的测试后,我创建了一个错误报告。 Facebook确认并修复了错误。基本上,它与不当的权限处理有关。

The issue was not with the SDK but with Facebook itself. I had created a bug report after doing some more tests. Facebook confirmed and fixed the bug. Basically, it had to do with inappropriate permissions handling.

https://developers.facebook.com/bugs/1435856773345641/

这篇关于为什么这个Facebook创建相册代码创建重复的相册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆