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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:37:58+00:00 2026-05-26T03:37:58+00:00

How do I prase this? $scope = $facebook->api(‘/me/permissions’,’GET’); The result is as follows and

  • 0

How do I prase this?

$scope = $facebook->api('/me/permissions','GET');

The result is as follows and I want to get the value of installed:

array(1) { ["data"]=> array(1) { [0]=> array(5) { ["installed"]=> int(1) ["offline_access"]=> int(1) ["email"]=> int(1) ["manage_pages"]=> int(1) ["user_about_me"]=> int(1) } } } 

I’ve tried json_decode($scope, true), $scope['installed'], $scope['data']['installed'] etc. What am I missing?

  • 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-26T03:37:58+00:00Added an answer on May 26, 2026 at 3:37 am

    That is a super nested array – Your $scope[‘data’][‘installed’] was close. However, you forgot one layer. It should be $scope[‘data’][0][‘installed’]. Note the 0 in there – there is a third level.

    Accessing any of the scope will start with $scope[‘data’][0], so I would assign that to a new var to remove those two layers.

    $scope = $scope['data'][0]
    

    Then, all you need is the key for the permission

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

Sidebar

Related Questions

I want to parse this Json code : [{id:7,key:integrationContinue:integrationContinue,name:life Portlet,scope:PRJ,qualifier:TRK,date:2012-03-26T10:10:22+0100,lname:life Portlet,lang:java,version:1.0-SNAPSHOT,description:,msr:[{key:ncloc,val:897.0,frmt_val:897},{key:coverage,val:0.6,frmt_val:0,6%}]}] I created two
I'm trying to parse this XML I want to get a list of all
I want to parse this CSS Selector (and others of a similar form): div.class1#myid.class2[key=value]
I need to parse this json and get the itemvotecounts, and firstrankvotescounts. [ [
How do you parse this json: a:1:{i:3;a:3:{s:8:routtype;s:9:Alpha SS7;s:6:credit;d:4532.600000000000363797880709171295166015625;s:8:validity;s:3:276;}} to php object or array? Tried
I'm trying to implement a Login with Facebook using the Open Graph API. So
This is my Facebook connect Code: <script> jQuery(document).ready(function($){ $(.fb-login-button).live('click', function() { console.log('click'); fbEnsureInit(function() {
I am following the quickstart guide for boost::spirit, and I get this compiler warning
I am using this to parse a csv file and create an array data
I'm not sure if this is even within the scope of MySQL to be

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.