I am working with an application that uses facebook opengraph to post custom objects to a user's wall with a respective custom action. While working in an iOS environment, I am attempting to use the SDK function call:
- (FBRequest*)requestWithGraphPath:(NSString *)graphPath
andParams:(NSMutableDictionary *)params
andHttpMethod:(NSString *)httpMethod
andDelegate:(id <KC_FBRequestDelegate>)delegate;
to post the object. I specified the GraphPath as:
"me/[APP_NAME]:[APP_ACTION]"
and supplied the Params with a correct access token, api_key, and url to the object to be posted on the user's wall.
I then receive the error message:
{"error":{"message":"(#100) Application does not own 479077275455517 action type","type":"OAuthException","code":100}}
in the response from Facebook.
Any insights?
While following a tutorial for iOS SDK integration, I experienced this same issue running tests through the Graph API Explorer, until I finally noticed the sentence on the tutorial: "Go to the Graph API Explorer and select your app from the ''Application'' list."
Essentially I was attempting to post an action to the Graph API Explorer app itself, hence the error, since I do not have privileges to access that app, obviously.
So with that said, most likely somewhere in the setup of the Facebook sdk in your project, you have not entered or incorrectly entered your facebook app id, which produces the error you see.
Application does not own 479077275455517 action type
Is that the name of your action? I doubt it. Rather looks like it might be your app id.
That clearly points to a wrongly build Graph URL. Write it somewhere for debugging, and see what it really contains.
I know this post is old, but I had this same problem and recently resolved it. Be sure to check the FB API call for the correct [APP_NAME]. In my case, I had a test app and a live app, and I had coded the live [APP_NAME] in my FB API call:
FB.api("me/[APP_NAME]:[APP_ACTION]"...
So even though I had the my test app ID in the init, I was calling the prod app namespace in my FB API call.
Yes, [APP NAME] represents the app's namespace.
Hope this helps to clarify for anyone else who runs into this issue.
Related
I'm trying to create a small console application sending and receiving message from SFB.
I started by using the code from https://github.com/tamhinsf/ucwa-sfbo-console and followed the readme.md for creating the app in the Azure Management Portal (I assigned all the delegated permissions just to be sure).
All already included API work (so I'm sure I'm logging in correctly), but when I try to invoke makeMeAvailable to receive IM call (looking at https://ucwa.skype.com/documentation/KeyTasks-Communication-IncomingIMCall) I get the following response
{"code":"Forbidden","message":"The requested operation isn\u0027t allowed."}
My post data is the following
{"SupportedModalities":["Messaging"]}
Which is just as the example from the ucwa.skype.com site.
I'm also finding problematic to send a message, on the skype site the https://ucwa.skype.com/documentation/Resources-startMessaging shows a call to
Post https://fe1.contoso.com:443//v1/applications/970/communication/startMessaging
but on my application response embedded.communication._links.startMessaging is /messagingInvitations and not /startMessaging.
The documentation on https://ucwa.skype.com/documentation/KeyTasks-CreateApplication-3 also shows
"startMessaging":{"href":"/ucwa/oauth/v1/applications/105/communication/messagingInvitations"},
I'm quite confused over what I should do to correctly send and receive messages and the API documentation did not really help.
Thank you in advance.
makeMeAvailable isn't supported yet in UCWA for Online. Probably when it'll be introduced, a new app permission will be added in AAD permissions, which will need to be granted. So, that's expected, but the documentation is indeed outdated and just referring to behavior for UCWA for On-Prem.
See also / vote: Enable 'me' resource and controlling self user's presence in UCWA
You're correct, good finding. However, POSTing on the messagingInvitations resource (which is no where in documentation), is the correct way. So following the principle of using the URIs returned by operations, and not composing URIs by convention in your code is the way to go.
You can notify this by creating an issue here: https://github.com/OfficeDev/skype-docs/issues
I have this iPhone that loads a different part of a website based on what button you click. AKA it links to a sport website and the first page contains all the sports the site offers as buttons. I have code to check if the website is valid/up and if it’s not to display an error message. Is there a way in the code to like alert me somehow, like an email maybe, of such an error such as an invalid url? Like for example if the website removes a sport w/o my knowledge and a user goes to open the link and receives that error, can the app send an email to me (not from the users account, but like a background account maybe) that can alert me of such an error. Or maybe somehow have me access then NSLog of an error that i give?
There is something called TestFlight App that I use to log errors like that. You can read up on it here
http://help.testflightapp.com/customer/portal/articles/829571-does-the-sdk-support-production-builds-
Hope it helps!
You could create a Parse integrated app.
Alternatively, if you have access to a web server you could create a simple script that you could POST to in the app to let you know of any problems.
Since the user has connectivity on the internet, try creating a web service and use POST with some meaningful data.
If you don't develop server side as well find a web server that offers such a service.
I am interested in writing a simple CLI program that will send an SMS using Google Voice.
There are several scripts and an API or two available, but I have run into an issue that none of them seem to work any longer; as they mostly rely on parsing returned web pages.
Is anyone familiar with a current API that works so that I can send an SMS on Google Voice?
Thanks!
Looks like Google Voice changed the login procedure, and it now expects you to pass back a cookie. This issue for the Python wrapper sums it up: http://code.google.com/p/pygooglevoice/issues/detail?id=60
UPDATE AND FIX: Actually all that needs to happen is to change the login URL in your code:
Old URL - https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral
New URL - https://accounts.google.com/ServiceLogin?service=grandcentral
how would I integrate Facebook into my Mac Application. I could give Objective-C a bit of a go, but it's going to be in an AppleScript-Objective-C project.
I could.. update the user's status a bit better instead of just opening their web browser and pointing them to "Facebook.com" , I could make my own interface that interacts with Facebook.
Any ideas?
You can interact with the Facebook API in many different ways, including submitting status updates as a POST request to the graph api. Their examples aren't at all language-specific. They demonstrate how to interact with it using curl on the command line, for instance.
Docs are here: http://developers.facebook.com/docs/
EDIT: Laziness IS one of the Three Virtues of the Programmer, but dude.... Clicking a link is too hard? Well, okay:
Here's how you authenticate your applications and get added as an application for a user:
http://developers.facebook.com/docs/authentication/desktop
Then here's how to work the Graph api. The section you want is "Publishing" most of the way down the page:
http://developers.facebook.com/docs/api/
I am developing an application where in i want to alert the user if he receives a message from a contact.
I have been struggling for the same yet haven't found any solution to this.
I also wanted to know if the sdk 3.0 allows access to the call history..
There is no access to SMS messages from the application sandbox, and there is no access to call logs from the application sandbox. You can file a feature request with Apple, but I doubt you will see changes to this any time soon. You will not be able to provide any functionality in your app that depends on this information.
Similar question here regarding call history:
Reading call history in iPhone OS
Short answer is, not possible. I do not believe this has changed in 3.0.