I have issue regarding using twitter api.How can i use twitter apps in my application?? Because i am already used this and that. Using those link i can authenticate my twitter apps and get token access but can not post tweet. It gives message like OAuthTwitterDemo[26757:bf03] Request B4EA76F7-18A2-41EB-940B-7DD138E9389D failed with error: Error Domain=HTTP Code=401 "The operation couldn’t be completed. (HTTP error 401.)"
I am using MGTwitterEngine SDK. So tell me solution for my problem.
Thanks in advance
Problem is in priority in apps. When you create apps on twitter then you give permission like Read-Write than this error will not come.
Related
I want the functionality to send Direct message from my website using twitter API
But I am getting an error,
{"request":"/1.1/blocks/create.json","error":"Read-only application cannot POST."}{"ids":
[2563195406,262571857,2525414911,293987080,1338863436,15052860,1470277314,122058685,1139173794
,1381267824,225402247,274433814],"next_cursor":0,"next_cursor_str":"0","previous_cursor":0,"pr
evious_cursor_str":"0"}
You don't have write permission to send direct message so register your number in your twitter account and then change your app permission.
We have a Canvas Facebook App and for some time we get a strange error for some of the users that are trying to install (allow) our Facebook app. I mention this is happening only for some of the users and not for all! The error we are getting is "The remote server returned an error: (400) Bad Request." The graph API call we putted in a try catch block and this is what the logs says when I searched over them to see what went wrong. The graph API call is:
https://graph.facebook.com/oauth/access_token?client_id=XXX&redirect_uri=XXX&client_secret=XXX&code=code_received_from_facebook.
We received the code from Facebook and append it to the graph API call from above but it seems that for some users this is not working. Our redirect_uri parameters contains an URL to our Facebook App and contains also some parameters (example: http://apps.facebook.com/our_application_URL?cid=xxx&surveyid=xxx&messageid=xxx).
xxx = some values.
Did some of you confront with this kind of strange behavior? Working for some users but for other is not working? We are using the same code so nothing change between a successful installation and a unsuccessful installation.
Thank you for your help in advance!
Now that Facebook require SSL for applications your "redirect_uri" need to be https (i.e https://apps.facebook.com/myapp/), otherwhise you will get "Bad Request".
You probably got the error for only the users that had forced SSL but not the rest.
up until 4 days ago this was working just fine, now I keep receiving an error when trying to post a youtube video on my friends (or even my own) wall.
Reading user ids from list.txt and send them a video
Posting video to user id: me
{"error":{"type":"OAuthException","message":"Error validating application."}}
I am getting the same error with an application which i created on a friends facebook account when trying to do the same thing.
Does anyone have an idea why this is and what I can do to fix it?
Thank you!
I started getting this problem for some of my users on my app recently. It was because my database field for storing oauth tokens was limited to 100 characters, which in the past has been long enough for facebook oauth tokens. Newer tokens are sometimes longer than that.
Just a guess...
I have suddenly started getting this on working code too. I have traced the API URL the PHP SDK is calling and it does have an access token in. The PHP SDK errors with 'An active access token must be used...' and calling the URL it called manually results in 'Error validating application.'
i am using cakephp facebook plugin. when i click login. i get the following error
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
I am trying to work on the localhost.
Sounds like a registration problem. Make sure the site url is set correctly, people seem to having a similar issue in this thread.
i want to get oauth_request_token for my application but when i request for the page of request_token in twitter it is giving me error that "failed to validate to oauth signature and token".
Please help me in solving this problem
using oauth in objective-c is no minor accomplishment. my advice would be to take a look at oathconsumer and its tutorial. I've used it successfully for oauth and xauth. You may also want to look around for existing twitter oauth obj-c libraries on github and googlecode.