Facebook Logoff Not Working - iphone

I am trying to build a Facebook/Twitter application that allows the user to take a picture at a trade show for example. Then enter their facebook or twitter credentials and a comment and have it post to there site. I have messed around with the facebook side of things and can get it to work but logging the user out doesn't work as I thought.
The cookies are stored in Safari, this is fine but of course my app cannot get them.
Each time the user is done posting it needs to correctly log them off so the next user doesn't just relog back in as the prior user because of the cookies in safari. This almost needs to be a Kiosk like app.
I have been looking at this topic for about a week and all the old examples are relevant to the old FacebookSDK. I have looked at the examples provided by Facebook to no avail. Any help or pointers would be GREATLY appreciated. I
UPDATE:
I was looking into something like UIWebView to display facebook and then the cookies would be available to be deleted... Has anyone done this recently? I found some old examples but they do not work.
Update: I might have this working I am stuck on something else now but will post the answer to this question as soon as I finish! Should be next day or so.

Related

Where do I view information harvested from Facebook Login?

First of all, let me point that I have only used Facebook Apps and Facebook Analytics for the first time about two days ago and my knowledge of code, app building etc is very very minimal.
I have recently added Facebook Login to a webpage of mine, which is working great.
FB Login working property
The page with Facebook Login on - https://valdezwright.com/access
The only problem is, I cannot figure out where to VIEW this information.
All I need to view for my own purposes are email/name/maybe some other bits, but I cant find where to find it in, for example, a nice accessable spreadsheet or something similar.
I have Facebook Analytics.
Can anyone help me with this please? I'd be most appreciative as I'm currently pulling my hair out!
Thanks

How to permanently delete my Facebook application

I have created a Facebook application that I don't want to use anymore. I deleted it from my developer account and from the related Facebook page more than a week ago but it still appears in the Facebook search engine.
I know similar questions have been posted, but I have no longer access to the admin of this application, meaning I can't change the user accessibility of the app.
How can I avoid this?
Sounds like a bug by Facebook. You might want to post a bug report here. A solution which might help next time: Switch on the sandbox mode, then delete the app.

Twitter page no longer exists, Token used error

I am working on implementing sharing an image via Twitter in my application and I have come across this page.
When I run my app in my simulator I can no longer log into Twitter. I get a page stating that "This page is no longer valid. It looks like someone already used the token information you provided."
I have gone to Twitter and to the Applications page and removed this application to try again. I still get this warning page though.
When I try to run the app on my device it crashes when I tap the Twitter Button.
Has anyone found a solution to this?
Or if someone could point me to a solid Twitter/TwitPic reference tutorial that actually works that would be great as well.
Check these sample twitter apps source codes, will lead you for smooth implementation,
https://github.com/bengottlieb/Twitter-OAuth-iPhone
https://github.com/luciuskwok/HelTweetica
https://github.com/takuma104/ntlniph
http://code.google.com/p/tweetero/
http://jaanus.com/post/1451098350/an-example-iphone-twitter-app
I got this problem.
Woah there!
This page is no longer valid. It looks like someone already used the
token information you provided. Please return to the site that sent
you to this page and try again. It was probably an honest mistake.
Turns out the fix for this was simple although it took some hunting down!
The date/time on the server running the app had somehow become a day behind.
Twitter checks the time sync when using the API, and if the client doesn’t have the correct time, it’ll report the above error.
Maybe you've got some loop or a method that is being called twice?

Tweet (or facebook) status update from iPhone with predefined Text

Hey,
sorry to bother you again, but I can't get this to work and would appreciate a working example project.. I try to give my users the possibility to post a short, predefined message from inside my App on either twitter or facebook (both should be available, but it doesn't have to update both on the same action, so one button to "share on facebook", one button to "tweet about it", so if you have a solution for facebook, but not for twitter or vice versa, I'd happily take the solution you have, either facebook or twitter and go on searching for the other one). It's my first time trying to interact with facebook and twitter, so I need something like dummy-proof explanation.
I found MGTwitterEngine but it seems to be hell to get it working. I've found Ben Gottlieb's Twitter OAuth-iPhone bundle, inserted my data, "registered" my app, and stuck with a gray screen on my device.
I'd need a working example of an iPhone App Project, that manages to tweet or update the facebook status of a user (maybe after a short and painless(!) login). Than I'd happily fiddle around myself to get this working, but by now I only find links to Desktop-Applications, examples or demos that won't work out of the box, or expect you to have done this several times before -.-
Thanks for your help, and sorry if that is an easy question, but I can't find the answer I need..
Perhaps the easiest way to be able to publish to a number of different services is ShareKit. This supports sending messages to Twitter, Facebook and a bunch of other services.

iOS Facebook Integration

I am working on simple facebook integration that allows users to post high scores to their wall. The way doodlejump handles this is my inspiration. I have it functioning, but it's not very clean and I'm not sure what to do.
I followed the instructions at http://developers.facebook.com/docs/guides/mobile to get up and running. One of the first things it has you do it call [facebook authorize:nil delegate:self]. After that you can call [facebook dialog:#"feed" andParams:params andDelegate:self] to make a post to the users wall. I have two issues with this.
First, when you call authorize it exits your app as that is facebook's new desired methodology as part of "One Single Sign-On" (OSS). That ok, what isn't ok is that my app is doing this even if the user is already signed on. I do not see a way to check if the user is already signed on.
The second issue is that it exits my app to authorize my app to post something to facebook. It seems acceptable to exit the app to sign on to facebook. Most users will have already done this, so no big deal. But my app should not have to exit just to get user authorization to post something. DoodleJump doesn't do that but I'm not sure how.
I tried digging through old posts but the SDK has changed so a lot of them are no longer valid. Thanks.
Based on the latest Facebook SDK (located at Github) and it's example I have determined that this is the expected behavior.
It is built around the new fangled "fast app switching" so it looks like that is just what happens.
A little lame imo but if that's what Facebook engineers have determined to be the optimal process then so be it.
I was having the same problem. Turned out it was because I hadn't set the URL Schemas in info.plist Where it says to fut fbYOUR_APP_ID make sure that you do this how they say. Your plist file should say something like fb12345 and then it will identify that the user has logged in correctly. offline_access will then work as a result
Might not be the answer you are looking for, but the app 'Hipstamatic' connects with facebook for photo upload (which I assume/hope is a similar process as wall posting) from within itself.
It could be worth seeing if they would be able to guide you if you sent the devs an e-mail?
I think they solve this issue by calling an iframe of sorts within the app, connecting the app to facebook and performing facebook activities, then closing once complete.
Hope this helps!
What permissions are you requesting? If you don't ask for offline_access the framework will make the user log in each time.
You can also try ShareKit
It's an open source library for iOS to share links, images and more. It's very simple and also works with Twitter and other social networks.
The site also contains some video tutorial and some code examples to integrate the Facebook API, Check this