Facebook integration

Hey, I tried the new Facebook iOS SDK, but there's something really bothering me. It seems that every time I load the App, and even push a window after it's been popped, the session ends and I have to log in again.
How can I resume a session like with the old iPhone SDK?
The structure of the app is like this:
didSelectRowAtIndexPath loads a window with an article. In that window, there's a button for FB sharing. In order to use it I have to login every time. The Facebook variable is released and initialized like this:
- (void)viewDidLoad {
[super viewDidLoad];
_facebook = [[[[Facebook alloc] init] autorelease] retain];
- (void)dealloc {
[_facebook release];
[super dealloc];
Am I doing something wrong?
I would really appreciate if you could help me.
Message was edited by: Phreakazoid
Message was edited by: Phreakazoid

Well, I'm no expert, but one thing I notice right away is you should not be manually releasing an object that is set to autorelease.... I would look at the published example of how to instantiate the facebook object....like:
facebook = [[Facebook alloc] init];
then your release line in -dealloc would be fine.... just make sure "facebook" is declared as an iVar and not local to a method.
if you need to retain it, create a retainable property of the Facebook class and then set the property's value to "facebook", release the variable "facebook" immediately afterwards and then release the property in your dealloc....

Similar Messages

  • Doubt regarding facebook integration for windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight application . For my application I integrated the facebook login. For this facebook integration I used the login with facebook app method.
    My doubt is after getting the app id from the dev center , I updated the appid at developers.facebook.com , wmmanifest.xml (In extensions protocol (msft-appid without dashes)) . Or do I need to change the product id in the place holder also , I tried to
    change the productid also but I am getting error like some signature is wrong try with different signature. I am confused how to do it .
    Any help,
    Thanks...
    Suresh.M

    Hi Suresh,
    According to your description, I assume you want to complete facebook configuration in windows phone silverlight app. Please refer to the following link to see how.
    http://facebooksdk.net/docs/phone/config/.
    You can find code sample from
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/tree/master/Samples.
    Facebook API is third-party library and it is our of our support range. You can post questions on here.
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/issues.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Facebook integrated with 5.1 : how to use it?

    Hello guys,
    I saw that I can enter my Facebook username in my own contact page. I have two problem here :
    1) I don't have a username per se, I use my e-mail adresse. In the blank space, do I put my e-mail adresse? or I need to create a costum username?
    2) On wikipedia, it says that iOS 5.1 has now facebook integrated in the system. How can I share a photo on facebook witch the camera roll?
    Thanks!

    You set this up on the facebook website.
    You can personalize your Facebook URL (web address) by selecting a unique username. It will appear in the location bar of your browser after "https://www.facebook.com/" when you view your profile (timeline) or Page.
    An example of a username is the phrase "fbsitegovernance" as used in the web address https://www.facebook.com/fbsitegovernance.

  • How to Configure the Blackberry Facebook Integrated Applicatio​n

    Hi Friends ,
                How to Configure the Blackberry Facebook Integrated Application while getting the Application Id , Application Secret for Registering the App in Facebook.
                Please Help me , It''s Urgent.
    Thanks & Regards,
    Nagarjuna Metla.
    arjuna

    Bonjour,
    Effectivement, la valeur du filtre de la carte NI-6280 est 40kHz.
    En simulant la carte, j'ai pu faire le test avec le VI joint.
    Si ce VI ne fonctionne pas, quelle est le code d'erreur obtenu et à quelle fonction apparaît-il ?
    Salutations,
    Isabelle
    Ingénieur d'applications
    National Instruments France
    Attachments:
    filtre 6280.vi ‏73 KB

  • Use facebook integration with business page

    We would like to use the facebook integration to link to our business facebook page, that way we can easily monitor activity and share posts and photos directly from the desktop.  I can only get it to link to personal accounts of those who are managers of the page and we would prefer not to have employees distracted with their personal facebook lives at work.
    Thanks!

    Yes, you can keep your facebook contacts out of your contacts app.
    Open system preferences>mail, contacts, and calendars>(your facebook account)>contacts
    There should be a check box for contacts, if you uncheck it, your facebook contacts/friends should not end up in your contacts app.
    I'm not 100% sure, sorry, I don't have facebook integration activated on my Mac.

  • Xperia Facebook integration doesn't Work

    Hello,
    When I want to Connect my Xperia Z1 to my facebook account using Xperia Facebook integration a black Screen with loading bars appears and it stays that way indefinetely.
    I tried cleaning data for Xperia Facebook integration. I uninstalled facebook and reinsatalled it Nope.
    Please help

    There seems to be issues with Xperia with facebook/twitter
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Just downloaded mountain lion but i dont have facebook integration

    Isnt mountain lion supposed to have facebook integrated? Thats what they said at the keynote, well i hust downloaded mountain lion from the app store on my brand new macbook pro, but i dont seem to have facebook integrated, when i go to mail, contacts and calanders in settings twitter is there but not facetime, what can i do to get facebook integrated?

    Nope, sorry, not available in Mountain Lion till Autumn this year.
    See note 4 at the bottom of this page:
    http://www.apple.com/osx/whats-new/

  • I have got the new iPhone 5 and the iOS inside is suppose to have the facebook integration, i have upgraded to the latest version, now i get the facebook option in my notification centre, but i thougth i was going to get all the notifictaion , but sadly

    I have got the new iPhone 5 and the iOS inside is suppose to have the facebook integration, i have upgraded to the latest version, now i get the facebook option in my notification centre, but i thougth i was going to get all the notifictaion , but sadly i have to log on to fb application to get all my notification updates , nothing is notifyied to me , is there a way to make this happen ??, if yes please help me out , i have tried all the options but doesnt seem to work im afraid ..

    Good.
    Three things come to mind:
    1.  I think you're implying when you travel away from your home to a more populated area, the cellular coverage improves and your iPhone works well.  Is that right?
    2.  Do you have a case or some other obstruction over or near your iPhone's antenna?  Have you tried moving or removing any possible obstructions near the antenna?
    3.  AT&T has a (free) app in the App Store called "Mark the Spot".  You can use this app to report voice and/or data issues to AT&T, as well as keep up on progress they may be making in improving coverage in your area.  Your trouble reports are geotagged (if you wish).

  • IPhoto 09 facebook integration design botch with shared library

    Like, I suspect, a lot of people with a family Mac we have multiple accounts so we can have our own setup, but we pool all our photos together into a shared library (per Apple's recipe, using a separate volume without permissions) so we can all browse our common photos...after all, the pictures of us our more likely to come from other people's cameras, and vice versa.
    This worked fine in the last version of iPhoto, but the implementation of facebook integration has a serious flaw. The facebook metadata is stored in the iPhoto library (though it seems not the passwords, thankfully), instead of a user's personal directory. This means when I look at the shared library, I see the facebook folders the OTHER users of the mac created, which are unwriteable to me, since of course we have separate facebook accounts.
    This is a design flaw. The facebook folders should be personal info, not visible in the shared library, or (better yet) I should be able to have a shared library for iPhoto and separate personal libraries, then I could make my own choices.

    iPhoto menu -> Provide iPhoto Feedback
    Regards
    TD

  • Where is the Facebook integration?

    Looked through whole system and not one thing about facebook integration or anything which is one of the main reasons i bought this app its just not there and it should because thats how it was advertised.

    It will be available in the Fall.  They couldn't get it done for today's release.
    From the ML web page:
    This fall, OS X will be even more Facebook friendly. With built-in Facebook support, you can share what’s up with you right from the app you’re in. Post photos or links. Add comments and locations. Just sign in once, and you’re all set up. OS X adds your Facebook friends and their profile photos to Contacts so you can find them fast. When friends update their information on Facebook, it’s automatically updated on your Mac. Your Facebook notifications show up in Notification Center. And you can even update your status right from there.

  • Ios 5 facebook integration?

    ios 5 also does not cause facebook integration?

    Not really sure what you mean, but all that has been announced about iOS 5 can be found here:
    http://www.apple.com/ios/ios5/

  • Facebook integration os x probs

    Just realised that with a recent update ive now got facebook integration from my notification centre. Great stuff ........ it it reliably worked!
    I always go into the app and find notifications there but none in the os x. some of them are like an hour old.
    Now is there a rhyme or reason to when and how this thing checks?  Im using firefox. dont know if you have to have safari as default or something.
    sometimes it works and i get whole pages of notofications. sometimes they just dont show.  I can post status updates fine
    I have seen an app called Glow in the app store that works better ... but id prefer to use os x if its something im doing wrong
    cheers

    Not yet. not until:

  • How to sync iPhone's Facebook integrated contacts to Address Book (Mac)?

    Hello Apple Support Communities!
    I have a question regarding the Facebook integrated contact entries in iOS6. Is there any way of syncing them onto the Mac's "Address Book" or iCloud?
    Seeing as how they contained a lot of information, I copied all the numbers and addresses onto these Facebook contacts and deleted the ones I originally had. But when I synced them onto the computer, only the ones that weren't linked to Facebook stayed in the address book and iCloud.
    Perhaps there is an app that allows me to export the contacts on my iPhone and onto the Mac?
    Thank you in advance!

    Choose About this Mac from the Apple menu and check the processor.
    If it's a PowerPC Mac, it can't sync that iPhone.
    If it's an Intel Mac, click here, install the DVD, and run Software Update.
    (109553)

  • How can I turn on Facebook integration in iOS 6 without syncing w/Calendar/Contacts?

    Just updated to iOS 6.  I would like to turn on Facebook integration but I don't want to sync with my contacts and calendars.  It seems that there are options to turn this off but only after you've signed in to Facebook -- and you get the warning that signing into Facebook merges your contacts and calendars!  Is there any way to turn off the merger in advance?

    You'd do that if you wanted to add in all your contacts from facebook - it makes it useful to find out who's using other apps - 4 square - whatsapp, facetime etc.   I had many facebook contacts that I don't call, however if they are using other things, I might be talking to them.  So yeah, I decided to bring in all my facebook contacts.  It has created a mess that I'm trying to clean up though.  The mess is that I have a lot of duplicate contacts ( a facebook contact of Mary Smith and a contact on my phone of Aunt Mary).  I know that when I go and edit one of the 2, there is an option to link the 2, which will then merge the data (adds email info, birthday, facebook contact info, twitter etc) but it doesn't delete one of the contacts.  It should give an option to delete one of the merged contacts.. but it doesn't.  I'm not sure how to fix this.  I've been asking the boards here, but no solution has been given.
    There has to be a way to do this (easily) that is

  • Facebook integration, why I don't have it when I downloaded the latest update to the Mountain Lion?

    I couldn't seem to see how Facebook integration work in my Macbook Pro when I already downloaded the latest update.
    I wen't to the system preference, mail and calendars but can't find the facebook sign in? It worked ok with my other iOS device (iPhone and iPad) but couldn't make it work in my Macbook Pro.

    Firefox > Tools > Options > Privacy > History
    Firefox will "Use custom setting for History"
    Keep until "They Expire"

  • Why can i see facebook integration on mountain lion?

    Hi have just installed new mountain Lion and cant see Facebook integration anywhere?? have twitter an all the others but cant see Facebbok as an option in Mail, Contacts and Calendars at all??? Am on MacBook Pro 17" late 2009.

    Thank you !!! i guess ill wait again

Maybe you are looking for

  • Can't mount my Galaxy Nexus correctly with MTP

    Hello everyone, I am posting because I can't mount my Galaxy Nexus correctly and I am not sure where the problem is. I am glad for any pointers. I am basically following the Arch Linux Guide to MTP, so moving along I get these outputs: [root@Caduceus

  • How to get server certificate before sending off confidential content?

    If my mail client knows for example the SHA1 value of TLS/SSL enabled receiving MTA's certificate, subversion of DNS and Root-CAs could be prevented if after establishing the connection, the com.sun.mail.smtp.SMTPTransport.serverSocket were accessibl

  • Mac Games Vs Bootcamp Games

    Hello everyone, I have been playing some OSX-friendly games on my Macbook Pro 2.66 GHz unibody 09 version. But the problem is that when i try and play games such as: Starcraft 2 Beta, Portal, Team Fortress 2, Half Life 2, the performance doesn't seem

  • Raid drive periodically "missing"

    I have an xserv 2.8 quad xeon with an internal raid (3 drives, RAID 5). Drive in bay 3 periodically showed up as missing and the raid set was degraded. I marked it as a spare and the raid set rebuilt. This happened several times so I replaced the dri

  • RTMT reset SIP Trunk

    Hello, anyone knows what is the trace in RTMT when a sip trunk connected to CUCM 9 resets manually. I am checkin in logs but there is so much logs in it, if ai know this trace i can "find" in logs. Thaks Anna.