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 8074669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:43:53+00:00 2026-06-05T14:43:53+00:00

My iOS app allows people to log in using Facebook, and automatically checks to

  • 0

My iOS app allows people to log in using Facebook, and automatically checks to see which of your friends are currently registered as using the app. All of your friends who are not currently using the app are in an “invite” list, in much the same way that DrawSomething has a ‘play’ and an ‘invite’ list of friends.

Regardless of whether you invite or play, a challenge is stored in the database ready for whenever your friend logs in.

Where I’m stuck is trying to work out how I would allow a user to post onto their friends wall. My php code already works out whether or not they are registered so from there I would simply need to post to ‘Friend B’s wall. I haven’t been doing php for particularly long, and I’ve found that the Facebook code I’ve dealt with elsewhere isn’t as self-explanatory as other sdk’s etc.

I’m not really sure where to begin, as all of the Facebook “information gathering” i.e. friends user id is done in the app itself. I can pass this to the php code easily enough, but then I’m not sure how to use that to post onto their wall. I would assume that since the server is not logged into User A’s Facebook account that it would need to do this somehow before it is allowed to post to their friend’s wall, but I don’t want the user to have to log in again in order to do this. Given that DrawSomething allows you to invite via Facebook I know it’s possible, but I have no idea how to do it.

To sum up:

It’s an iOS app, and I want users to be able to invite their friends by posting onto the friends Facebook wall.

If anyone can point me in the right direction I’d be extremely grateful.

  • 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-06-05T14:43:54+00:00Added an answer on June 5, 2026 at 2:43 pm

    OK so after battling with this for some time and looking high and low without any luck, I managed to stumble across how to do this today.

    I’ll update it here so anyone else who is struggling can see:

    //using long longs to make sure the really long facebook ID's
    //don't exceed integer limits
    
    - (void)inviteUsingFacebook:(long long)facebookID
    {
        NSString *numStr = [NSString stringWithFormat:@"%llu", facebookID];    
        NSString *desc = @"Download the app NOW from the App Store to play with ";
        desc = [desc stringByAppendingString:facebookNameStore];
    
    
    
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   @"_YOUR_APP_ID_GOES_HERE", @"app_id",
                                   @"YOUR_LINK", @"link",//most likely you will put itunes link here
                                   @"FRIENDS_ID", @"target_id",//facebook id number of person you want to send to
                                   @"http://URL_TO_IMAGE_YOU_WANT_TO_APPEAR_IN_WALL_POST.jpeg", @"picture",
                                   @"YOUR APP NAME", @"name",
                                   @"THIS IS AN INVITE EXAMPLE!", @"description",
                                   nil];
    
    
    [facebook dialog:@"stream.publish" andParams:params andDelegate:self];
    

    }

    And that’s it!

    I put this into my AppDelegate class, and call it when I hit my invite button – job done!

    One thing to note is that this does result in a pop-up dialog which allows the user to add their own message, which personally I think is a good thing.

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

Sidebar

Related Questions

I currently have an iOS app that allows people to submit content to our
I am creating a quiz style app for iOS using phonegap. The app allows
I'm using the Facebook iOS SDK to post videos from my app to the
My app idea allows people to see a list of items, 6 per page
I've got an iOS app that allows a user to connect to our server
I am developing an iOS app that allows users to download documents off a
I have an iOS app with a UITableView that has flexible width, which allow
I'm trying to use the Facebook iOS feed dialog call to allow my app's
My iOS app sends MIDI bank and program changes to other devices using PGMidi
We're using static libraries in an iOS app. Some of those static libraries require

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.