Appcelerator Titanium issue: Facebook Graph API showing empty Friends list

Having trouble with the Facebook connection using Titanium.

When I send a request to Facebook using Graph API, I only receive an empty result:

SUCCESS; {"data":[]}

This is the code I'm using:

Ti.App.fb.requestWithGraphPath('me/friends', false, 'GET', showRequestResult);

I've also attempted to use the request example from KitchenSink, but it's not working because the method is configured for my FB SDK.

I tried updating the permissions for Facebook with "user_friends," but even after logging in, it didn't prompt for this permission.

Any suggestions or ideas? Thank you for your assistance.

Answer №1

The main issue preventing success was the necessary Facebook permission "user_friends" that needed to be obtained.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Load website once AJAX has finished

Currently, I am using an ajax call to retrieve the color scheme of my website from the database due to having multiple clients with different schemes. My goal is to ensure that the page only loads after the ajax call has completed. Despite an expected dela ...

Ways to categorize specific columns based on certain criteria

In the code snippet below, I am working with a data grid in premium version. There is a boolean field that determines whether to display the data grouped or inline. If the boolean is true, I want to show the expand group, otherwise display it inline withou ...

Calculate the total sum of input values using jQuery

Here is the HTML I've been working with: I am trying to create a script where one textbox will display the total amount, and another textbox will display the following data: "name": [{ "id": 3, "qty": 2 }, { "id": 4, "qty": 5 }] Here's ...

Identifying a specific field in a dynamically generated React.js component: Best practices

Currently, I am in the process of developing a form with an undetermined number of sensor fields. The front end has been successfully implemented and now my focus is on extracting user information from these dynamically generated component fields. Here is ...

Transfer information from the server to the client using NodeJS and Express

I am encountering an issue with sending data from my express server to the client side. I have implemented app.post and app.get, however the problem is that the request needs to originate from the client side. My requirement is to send the data from the se ...

Tips for transferring date values in an ajax request to a web application handler

I am currently working on plotting a graph between two dates using Google Charts. My goal is to send date values to the controller, which is implemented with webapp2. However, I am facing difficulties in figuring out how to send date values to the controll ...

Is the current version of NPM React-router too cutting-edge for your needs

When I use the command npm -v react-router on my React app, it shows version 6.9.0. However, when I check the npmjs page for react-router, the latest version available is 5.0.1. How can this discrepancy be explained? ...

Tips for assigning a JSON object as the resolve value and enabling autosuggestion when utilizing the promise function

Is there a way to make my promise function auto-suggest the resolved value if it's a JSON object, similar to how the axios NPM module does? Here is an example of how axios accomplishes this: axios.get("url.com") .then((res) => { Here, axios will ...

New example of how to use the "useSession" syntax in Next Auth

Currently, I am delving into the next-auth documentation and feeling perplexed by the syntax used in the useSession hook. The way it's showcased in the documentation is as follows: const { data: session, status } = useSession() My confusion stems f ...

Best practices for incorporating JavaScript into Angular applications

I am looking to integrate a JavaScript library into my Angular application. After researching various methods, I have decided to incorporate the library found at . I was hoping to create a module named 'plot-function' that would offer a function ...

Transmit a document via ajax jquery and retrieve it on the server side with Flask

I am currently working on sending a file using ajax jquery from the front end. HTML <label>Upload File </label> <form method='post' enctype="multipart/form-data"> <input type='file' id='uploade ...

Tips for adjusting the language settings on a date picker

Is there a way to change the language from English to French when selecting a month? I believe I need to configure something in the core.module.ts. How can I achieve this? https://i.sstatic.net/Cpl08.png @NgModule({ declarations: [], imports: [ Co ...

How can we enable Material UI tooltip based on certain conditions?

In my React component utilizing Material UI, I have the code snippet below: const MyButton = ({ warningText }) => ( <Tooltip title={warningText}> <Button>Do action</Button> </Tooltip> ) At present, an empty tool ...

Attempting to showcase the content of three select dropdowns upon clicking a button

I need assistance in displaying the values of all three dropdown selects in a side span. I am having trouble extracting the values from each select box and inserting them into the correct location. HTML: <select id="single"> <option>1< ...

Creating Space Around Content Using Padding in HTML

I'm currently working on creating a "Pad," but I am struggling to figure out how to do it. If you take a look at the Fiddle, you'll notice that the "Content" is padded intentionally. I know how to achieve this using a table. However, when inclu ...

Can you provide me with the Regular Expression that can be used to validate Decimal Values ranging from 0 to 99999.00

I need a regular expression in AngularJS to verify that a decimal number falls within the range of 0 and 99999.00, with up to 2 decimal places. Instead of using the max attribute in AngularJS, I want to utilize ng-pattern. I have tested various regex pat ...

Leveraging Node.js socket.io alongside React's web worker for streamlined communication

I have a project that involves using socket.io, React.js, and Webworkers https://i.sstatic.net/3SUg3.png Components A and B are child components of the Home page component. These components also function as tabs, so when A is mounted, B is unmounted, and ...

Issue with the back-to-top button arises when smooth-scrolling feature is activated

This Back To Top Button code that I discovered online is quite effective on my website. // Defining a variable for the button element. const scrollToTopButton = document.getElementById('js-top'); // Creating a function to display our scroll-to- ...

Utilizing Ajax in PHP to handle post requests and gracefully handle errors

I have retrieved data from a database and I am presenting it in a pie chart using chartjs. My goal is to allow the user to select a specific range of dates. When the user clicks the filter button, the pie chart should update to display data based on the s ...

the term 'this' does not pertain to the user object within the mongoose model

Here is a snippet of my code that saves a user object to a database using Express: api.post('/signup', function (req, res) { var user = new User(); user.name = req.body.name; user.email = req.body.email; user.setPassword(req.body ...