0

クライアント ウォールに写真を投稿しようとしていますが、Firefox では問題なく機能しますが、Chrome (またはエクスプローラー) で同じことをしようとすると、初めてアプリケーションを使用してインストールするときに、うまくいきません。まったく応答がありません...ページを更新して再試行すると、正常に機能し、写真が投稿されます...

これは私が使用しているコードです:

            var imgURL = obj.picture;
            FB.api('/me/photos', 'post', {
                message: obj.description,
                access_token: accessToken, 
                url: imgURL
            }, function (responsePhoto) {

                if (!responsePhoto || responsePhoto.error) {
                    if (!responsePhoto){
                            console.log(responsePhoto);
                            alert('An error has occured: please refresh and try again');
                    }
                    else  {
                        console.log(responsePhoto);
                        alert('An error has occured:' + responsePhoto.error + ' please refresh and try again');
                    }
                } else {
                    //alert('your photo has been uploaded');//('Post ID: ' + responsePhoto.id);
                }
            });

何か案は?

ありがとう

4

0 に答える 0