Instragram send like to image show error for app - ios

I have created app on Instagram and got access token and client Id.
My issue is that when I send like to image using API method that is showing me error:
meta = {
code = 400;
"error_message" = "you cannot like this media";
"error_type" = APINotAllowedError;
};
}
So like is not being sent to Image. I can explicitly able to like that image from the Instagram app. So may be the issue is not related to image's privacy. Can anyone help me for this issue?
Thanks in advance
************** Edit **************
After I check I am able to send Like from the API consol of the instagram for same media_id with response 200/OK. But from my app issue is still there.
Can I solve this by changing the APP ID AND APP SECRET ?
Please reply

1 - Double check if you are using correct access token
2 - How much likes did you in a hour? Pay attention to it and respect the limits. Take a look here: http://instagram.com/developer/limits/

Related

Unable to post the image,link to facebook from iOS Application

while posting, it is giving an error like "your message couldn't be sent because it includes content that other people on Facebook have reported as abusive" this thing is happening from today it self. Before it is worked fine with same code. I tried to resolve but no luck.
Can any body help me to resolve this thing!
]1
You can use the appeal form for blocked content.
What is the url that you are trying to share?

Can't send tweet anymore: plugin com.apple.share.Twitter.post invalidated

My app uses an SLComposeViewController to post to Twitter. This worked for a few months and then suddenly stopped about a week ago. The Twitter share view allows me to press "Post," and the following code still gets to the "..." line:
twitterComposeViewController.completionHandler =
^(SLComposeViewControllerResult result){
if (result == SLComposeViewControllerResultDone){
...
}
};
and dismisses the Twitter share view, but the tweet fails. I get a alert view that says,
Cannot Send Tweet
The tweet "[my tweet text]" cannot be sent because the connection to
Twitter failed.
A moment later, the console logs,
plugin com.apple.share.Twitter.post invalidated
I have looked at some similar questions on SO, but none has an applicable answer (my tweet is not over the character limit; I am properly logged in; etc.). I have checked my settings at apps.twitter.com, and I don't see anything unusual.. my consumer key and secret have not changed...
Anyone know how to get more information about the error, or what I should check? Thank you.
I found that strangely iOS has cleared out all of my Twitter account passwords. The accounts were still listed and the error said NOTHING about failing authorization, but that was the issue.
If you go into 'Settings' and 'Twitter', when you click on your account it will say 'user name or password is incorrect'. Fix the info and you will be all set.
Terrible error message, no idea how the average user would think to check that.
This problem occurs if you are trying to post same tweet more than once. You need to post different tweet every time.

"There are no Facebook accounts configured" error message on iOS when use IS logged in via Settings - app built with Corona SDK

One of our users is getting the following error when they try to post from the native popup:
No Facebook account.
There are no Facebook accounts configured. You can add or create a Facebook account in Settings.
However they assure me that they are signed into Facebook via Settings, and they are still able to post from one of our other apps. All other test users can post directly without any issues, and afaik it worked in the past in this app for the user who is currently experiencing problems.
It seems like it's most likely an OS issue rather than an issue in my code, I simply request that the native popup be shown and pass an image and some text through (these are still being pushed to the native popup correctly):
if native.canShowPopup( "social", "facebook" ) and system.getInfo("platformName") ~= "Android" then
local function socialFBListener(e)
if e.action == "sent" then
print("FB post sent successfully")
end
end
local options = {
service = "facebook",
message = "Here is some testing text",
listener = socialFBListener,
image = {
{ filename = "testImage.jpg", baseDir = system.DocumentsDirectory },
},
url = "http://quixtix.co",
}
native.showPopup( "social", options )
end
I can't find any reference to anyone receiving this error when they are signed in, all links I could find simply tell you how to sign in.
Error was due to a fault on the user's device. After updating iOS and restarting the device the problem went away.
I have the same problem. But its due to I was forgot to set my app as
'Public'
it can be done by,
Goto https://developers.facebook.com -> App Review
Set Make 'appName' public? to YES.
For anyone who are struggling with this issue at the moment, the solutions are worked out like this:
Delete the Facebook account at iOS "Settings".
Try to connect with your Facebook account at your app again.
Get success
Add the Facebook account back to iOS "Settings" again if you'd like.
Cheers.

iOS FB SDK Incoming URL for apprequests is missing ref=notif, request_ids, app_request_type

I am using iOS FB SDK (baked in Parse F/W) to send app request invites using
[facebook dialog:#"apprequests" andParams:params andDelegate:nil];]
The requests are being sent correctly and also appear on the invitee's account.
When I click on the request, the Facebook app correctly starts my app.
At this point, I am checking for incoming URL to process and get request_ids etc.
The sample code on FB (http://developers.facebook.com/docs/tutorials/ios-sdk-games/requests/) says the incoming URL should be of following format
fb480369938658210://authorize&expires_in=3600&access_token=xyz&target_url=http://m.facebook.com/apps/friendsmashsample?fb_source=notification&request_ids=abc&ref=notif&app_request_type=Duser_to_user
However, I am receiving it like this
fb123456789123456://authorize?expires_in=86400&access_token=BAADiMgKGSZB8BAD3ZCeZAGNkm7d8tGuNZAKuq5nThbNTdiZA1ZBFcp1bhIKp1cFvwDsOPZCZBIgowSwRkBnZARF5tBsyWHk0yLukZAK8ubNZA4ZCbkyQg619cg9v0SMqsaBzgwNbQZCdPZBSLoYwZDZD&
target_url=http%3A%2F%2Fwww.facebook.com%2Fappcenter%2F123456789123456
So there are missing components here like request_ids, ref=notif etc.
Does anything obvious looks to be missing here?
Please help.
Thanks.
For future users, I had to set up the Mobile Site URL as per this bug filed with Facebook - https://developers.facebook.com/bugs/465760136778889/
Ridiculous, but it works. Hope this is resolved. Not sure why they have this dependency.

iOS 6 SLComposeViewController - creating a facebook post with text and URL - no image

Quite simply unable to make a post with just the text and NSURL object. I can do it with just the post, or with the post, NSURL and image, but ideally I'd just like to provide the link with the post.
It simply states "Cannot post to Facebook" as "The post cannot be sent because the connection to Facebook failed."
Is there anything I can do? I'm not using the Facebook SDK at the moment, but perhaps I might have to?
Many thanks
We just started running in to this issue with code that was working correctly yesterday. Googling shows a lot of people having this issue sharing from other Apple apps today via native integration. I actually think this is an issue on Facebook's end.
I tried sharing a URL from Mobile Safari and it too fails with the same error. Can you confirm that Mobile Safari also fails to share?
Well for now I'm able to leave the image part nil (still include the method, just leave the argument nil) and it will show the text and link only.

Resources