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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:13:46+00:00 2026-06-06T03:13:46+00:00

Ok, I have codeigniter as my MVC, and I have the stock facebook sdk

  • 0

Ok, I have codeigniter as my MVC, and I have the stock facebook sdk 3.x whatever the latest is at this time, and I am trying to figure out how to add more than just “basic info” to my app permission when the user first authenticates. I am building this from scratch essentially, originally I had tried Elliot Haughin’s library, but for one reason or another it started to fail me, so I figure rather than 3rd party build my own deal from scratch and have a better understanding of whats going on where and when.

Problem is though with Elliots library he had it setup to just pretty much type out an array of the settings you wanted in one file, and then it would be passed on to something else, I assume the login for a user when the app has yet to be apporved by the user.

What i want to do is recreate that idea, or at least know where I should include it so I can get my outside the basic info needs.

  • 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-06T03:13:48+00:00Added an answer on June 6, 2026 at 3:13 am

    You set the permissions in the getLoginUrl function as described here:

    $params = array( 
                 'scope' => 'read_stream, friends_likes',
                 'redirect_uri' => 'https://www.myapp.com/post_login_page'
             );
    $loginUrl = $facebook->getLoginUrl($params);
    

    If you want to load the permissions from a configuration file you can do this:

    'scope' => $this->config->item('app_permissions'),
    

    EDIT:

    In JS SDK you have two options depending on the implementation of the login button:

    a.

    FB.login(function(response) {
           // handle the response
     }, {scope: 'read_stream, friends_likes'});
    

    b.

    <div class="fb-login-button" scope="read_stream, friends_likes" data-show-faces="true" data-width="200" data-max-rows="1"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 CodeIgniter installations, 1 on mydomain.com another on sub.mydomain.com. I am trying
I'm tinkering with CodeIgniter and have come across Active Records for the first time.
I am trying to get started with the PHP MVC framework, CodeIgniter. I am
I'm trying to build my first app on CodeIgniter. This is also my first
I'm trying to build my first app on CodeIgniter. This is also my first
I have a PHP web application built with CodeIgniter MVC framework. I wish to
I am using codeigniter php MVC framework to develop a web application. I have
I'm using Codeigniter with the mvc, and I'm not using querystrings, but I have
This is my first foray into using an MVC construct (CodeIgniter). I'm hoping someone
I'm studying MVC pattern applying it to codeigniter and I have a doubt: to

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.