tags:

views:

119

answers:

0

Hi,

I was trying for last two days to post into facebook user's wall offline using FB.Connect.streamPublish but it fails. The user has granted both publish_stream and offline_access permission.

When I try to publish content it asks for login again [with the message saying 'You must log in to share content from other websites with your friends.']. I tried by setting session, setting target_id parameter but in vain.

Code as follows:

FB.Facebook.apiClient.set_session(curObj.FBSessionKey); FB.Connect.ifUserConnected(curObj.FBUserID, function (result) { FB.Facebook.apiClient.users_hasAppPermission("offline_access,publish_stream", function (perms) { FB.Facebook.apiClient.users_isAppUser(function (res) { FB.Connect.streamPublish("Test", null, "", curObj.FBUserID, 'Test', curObj.PublishContentToFBWallCallBack, true, null); }); }); });

Can anyone pls help to solve this issue?

Your help is highly appreciated,

Regards Kish

related questions