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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:22:03+00:00 2026-06-03T05:22:03+00:00

Can you help with some stuck here, let’s look on code first, here i

  • 0

Can you help with some stuck here, let’s look on code first,
here i ask for permissions

 NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithCapacity:0];
    [params setObject:facebook._appId forKey:@"client_id"];
    [params setObject:@"token" forKey:@"response_type"];
    [params setObject:[NSString stringWithCString:"email,user_about_me,read_stream,publish_stream,offline_access" encoding:NSUTF8StringEncoding] forKey:@"scope"];
    [facebook dialog:@"oauth" andParams:params andDelegate:self];
    [params release];

Here use @”me” for graph API

- (void)fbDidLogin 
{
    [facebook requestWithGraphPath:@"me" andDelegate:self];

}

But all what i get is

- (void)request:(FBRequest *)request didLoad:(id)result
{
    [UIApplication sharedApplication].networkActivityIndicatorVisible=NO;
    NSLog(@"FB result %@", result);
}

FB result (
“Justfortest Workingin”,
100002369945695
)

But how to get email address ?

  • 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-03T05:22:04+00:00Added an answer on June 3, 2026 at 5:22 am

    The correct answer was that fb not return email and other data with

    [facebook requestWithGraphPath:@"me" andDelegate:self];
    

    only id and name.

    I need to simply put in

    - (void)request:(FBRequest *)request didLoad:(id)result
    

    another call for user data.

    Finally needed method looks like this:

        - (void)request:(FBRequest *)request didLoad:(id)result
        {
            NSData * dt = [NSData dataWithContentsOfURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://graph.facebook.com/me/?access_token=%@",facebook.accessToken]]];
            NSDictionary *response = (NSDictionary*)[[JSONDecoder decoder] objectWithData:dt];
            NSLog(@"fb response %@",response);
            if ([response objectForKey:@"email"]) {
                [[NSUserDefaults standardUserDefaults] setValue:[response objectForKey:@"email"] forKey:@"fbEmail"];
                [[NSUserDefaults standardUserDefaults] setValue:[response objectForKey:@"id"] forKey:@"fbId"];
                [[NSUserDefaults standardUserDefaults] setValue:facebook.accessToken forKey:@"fbToken"];
                [[NSUserDefaults standardUserDefaults] setValue:facebook.expirationDate forKey:@"fbExDate"];
                [[NSUserDefaults standardUserDefaults] synchronize];
            }
        }
    

    And i got all user data, thx to all for help, hope this will be helpful for someone.
    Also thx to guys from http://midatlanticconsulting.com who help me with this problem.

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

Sidebar

Related Questions

iPhone/objC I'm really stuck here and I could use some help, please. Let me
Can anyone help? I have some code that is shared between 2 projects. The
Ok I'm stuck, I've looked at some other questions on here but no help,
I wonder if someone can help shed some light on this: I drop a
I hope some of you guys can help me with this problem.... I have
I am curious if I can get some help with Open Graph since I
I’m new to JQuery and I hope some experts can help me with a
I got some problem with texture transparency, I hope ya can help. Details: XNA
Hi can some body help me how to call process.existed() method in c#? Actually
can some on help me on how i can reference images i have all

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.