Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:24:52+00:00 2026-05-26T20:24:52+00:00

I’m trying to integrate the Facebook SDK into an iOS5 project I’m building. Following

  • 0

I’m trying to integrate the Facebook SDK into an iOS5 project I’m building.

Following a piece of advice, I set the compiler flags on the Facebook specific files to ‘-fno-objc-arc’. This allows me to build the project successfully, while keeping ARC for my files.

I have gone through and implemented the basic Facebook SDK steps, and it is successfully logging in and setting permissions. The issue comes when I try and access the graph:

[facebook requestWithGraphPath:@"me/friends" andDelegate:(id)self];

The reason I am saying ‘(id)self’ instead of just ‘self’ is the latter throws me the error:

warning: sending 'PhotoController *__strong' to parameter of incompatible type 'id<FBRequestDelegate>' [3]

I have implemented all the callback methods. The only method that is successfully called is

- (void)requestLoading:(FBRequest *)request;

The app crashes when it receives data, I assume.

Per suggestions in other threads I have turned on NSZombie and here’s the results:

2011-11-14 13:40:29.896 Friend Carousel[9660:f803] facebook: <Facebook: 0x6e21550>
2011-11-14 13:40:29.898 Friend Carousel[9660:f803] self: <PhotoController: 0x6e215a0>
2011-11-14 13:40:31.115 Friend Carousel[9660:f803] *** -[PhotoController respondsToSelector:]: message sent to deallocated instance 0x6e215a0

Where facebook is the facebook object, and PhotoController is the delegate (with that method defined).

So it would seem that the Facebook Request object is trying to send a message to an already-released delegate. Right? And that’s what causes the crash?

Unfortunately, this is where my iOS knowledge fails me; is this something that I’m doing wrong, or am I simply not able to incorporate the Facebook SDK into an ARC-enabled project (without heavy modification)? I’m just not really sure where to go from here.

Thanks,

Kevin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:24:52+00:00Added an answer on May 26, 2026 at 8:24 pm

    I’ll take a stab here. My wild guess would be to look at where PhotoController is allocated. If it is not retained in an ivar and merely given to the Facebook object then it would make sense to crash as delegate properties are not supposed to be retained. In other words you can’t rely on the Facebook object retaining the PhotoController as this is bad practice with delegate objects. (Delegates are supposed to be weak references.) Where ever the Facebook object is alloc’ed and retained you should probably retain a copy of the PhotoController as well and keep it around for the life of the Facebook object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.