"Unexpected error occurred" getting When open FBWebDialog in iOS - iphone

I am sharing job Details to Facebook Friends, using the "Message" Parameter to post all content.
When I open FBWebDialogbox FBWebDialogs presentRequestsDialogModallyWithSession:<#(FBSession *)#> message:<#(NSString *)#> title:<#(NSString *)#> parameters:<#(NSDictionary *)#>.
I get the following error "Unexpected Error Occurred. Please try again later". But when I post less content with with the message param the error did not occur.
I've already posted with more content using Graph API to My Wall. But now I want to change to post to friends, however that is not supported in the Graph API.
Can I get any tips or suggestions on for this? Thanks.

Related

'An unknown error has occurred.' when updating a facebook group's cover_url

How do I successfully update a facebook group's cover_url through the graph api? No matter what I try, I get an error on the 3rd step from below:
Create a group by POST /APP-ID/groups DOCUMENTATION: https://developers.facebook.com/docs/graph-api/reference/v2.5/app/groups#publish
Get the returned GROUP-ID
Using the same access_token, POST /GROUP-ID with cover_url param DOCUMENTATION: https://developers.facebook.com/docs/graph-api/reference/v2.5/group/#update
The error I'm receiving is in the form:
{
message: 'An unknown error has occurred.',
type: 'OAuthException',
code: 1,
fbtrace_id: <SOME-ID>
}
I'm imagining there's some restriction on valid cover photos, but neither the documentation or the error give me any indication as to what that is.
I submitted a bug report to facebook in the case this is legitimately a facebook bug: https://developers.facebook.com/bugs/425584494232936/
Turns out, this is an issue with the facebook api itself.

New Facebook action can't be published with Test Users

I've created a Facebook action that I'm trying to submit to Facebook for approval. When I publish the action from my personal account, which is an app administrator, it appears to work fine and Facebook returns the Open Graph ID. I don't see this Open Graph Post on my timeline, but I can see that it works via the Facebook Debug Tool.
However, when I try to post the action via a test user that I created from my app settings, I get an error:
Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x1fc64d60 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ParsedJSONResponseKey={
body = {
error = {
code = 100;
message = "Unsupported post request.";
type = GraphMethodException;
};
};
code = 400;
}
I've tried tried debugging this for days and can't figure out what this error means. I know that when Facebook reviews the action, they will be doing it from a test user as well, so I want to make sure that my action works with test users. If it's relevant, I'm posting the action via the iOS SDK.
Any help in troubleshooting this would be helpful. Thanks!
It seems that your app is still in testing / sandbox mode. Make sure that your application is public and try again .

API Error Code: 100 Error Message: Some content in this message has been reported as abusive by Facebook users

Today, out of nowhere, my app has stopped working.
I'm getting this message and when i click ok, he redirect and get a server error.
API Error Code: 100
API Error Description: Invalid parameter
Error Message: Some content in this message has been reported as abusive by Facebook users.
I use Facebook php sdk.
How to fix this?

Getting OAuth error type when posting opengraph or wallpost

We have a sandbox app for development, but since this morning, our sandbox app are unable to post any wallpost or opengraph to feeds page or timeline. We are getting an error message like this for posting wallpost
Object {error: Object}
error: Object
code: 368
message: "Warning: This Message Contains Blocked Content: Some content in this message has been reported as abusive by Facebook users."
type: "OAuthException"
__proto__: Object
__proto__: Object
And we are getting error for posting opengraph
"An unexpected error has occurred. Please retry your request later."
The path we use to load the object is eg. fb-api.ourdomain.com/fbapi/{ourappname}/opengraph/{action_object}/gift_id/{gift_id}, and we put this domain name to the debugger at https://developers.facebook.com/tools/debug/, we got an error message
Error Parsing URL: Error parsing input URL, no data was scraped.
but once we changed to fb-test.ourdomain.com/fbapi/{ourappname}/opengraph/{action_object}/gift_id/{gift_id}
the debugger can return the object information.
So our question is, are we not allowed to use fb related name as our sub-domain name (but we cannot see that in the platform policy page: https://developers.facebook.com/policy/)? Or our sandbox app and object link got blocked because we created too many testing wallpost?
If it is the later case, why we cannot use the same object URL in other app? It looks like the object URL got blocked.
Thanks!

objectivec: fb post comment error

I created an ios application and want to post a comment to an article and to the comment of this article. But I can't get it work.
Comment an article: I test with the graph "post_id/comments" using the post_id that I found on the page of "Object Debug".
I got error "500" when I posted by ios SDK and
{"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}
when I posted by https://graph.facebook.com/{post_id}/comments
Post a sub comment to a comment: I used graph "commentID/comments", I got error 400 when I posted by ios sdk, and
{"error":{"message":"(#100) Invalid fbid.","type":"OAuthException","code":100}}
when I posted to https://graph.facebook.com/{commentID}/comments
I think what you are doing is correct but just you need to have problem is with Authentication.
Before comment or any post you must be logged or your session must be active. Check weather your session is active or not.
First of all call [myDelegate authenticateFacebookUser]; and then call method to post a comment.