facebook php graph api me/friend reture nothing - php

hi I'm a facebook api php developer. I developed some apps with me/friend . now this return friends only for my admin account. when another user use this app, it retune nothing.
why this return friends only for my admin account.
if should I get special permission how can I get it.
could you any one please help me.

Make app live
You need to make the app and all its live features available to the general public. This can be done by making the app live by going to https://developers.facebook.com, select Apps --> Your App Name --> 'Status & Review'.
Login Review
You might need to do a Login review.
Review is not required to ask for the three basic permissions: public_profile, user_friends and email. In order to use Facebook Login in your app and access additional elements of a person's Facebook profile, you will need to submit your app for review. If your app is not approved or you don't submit for review, people will not be able to use Facebook Login in your app.
https://developers.facebook.com/docs/facebook-login/review

According to Facebook Graph API for Friends you need user_friends permissions which states that:
Only friends who installed this app are returned in API v2.0 and higher. total_count in summary represents the total number of friends, including those who haven't installed the app.
Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app.
Read change log
You can debug me/friends endpoint as well.

Related

Send Facebook invitations only to people who are not registred on my website

For my current project I'm building a Laravel project where each customer will manage his company online. Each customer will invite his users to join his company on the platform, and we will use existing social networks for that, and especially Facebook. But I'm struggling with that invitation system.
Each customers will have to link their business page online with the Fabook Graph API with a page access token I'll stock on database. Like this customers will be able to send invitations through Facebook from our platform.
The problem is that I would let them invite only people who are following them on Facebook and are not on our platform. I saw that it was not possible from the Facebook GRAPH API to get the list of users who liked a Business page. It's only possible from the user to know if he like a specific page if he gave the authorization.
I would like to know how could I reach that goal ? Indeed, I would like to avoid people who are already on our website to be spammed on customers Facebook pages. Would it be a good idea to create a Facebook App linked to our Laravel platform to have more possibilites here on check in system ?

Facebook messenger chatbot working only for me but not for other users

I am having strange issue after i created facebook messenger chatbot app using pimax implementation and i followed all steps and created facebook page for the app called MiTaxi i found that it works only for me! but when i test my app using any other facebook users by the way my app is a live
I am not sure what is worng the application work prefect but no one else can test it but me.
I assume you did not go through the review process yet? HereĀ“s the docs: https://developers.facebook.com/docs/messenger-platform/app-review
Withour review, it will only work for users with a role in the App.
Your messenger bot needs to be formally approved by Facebook.
https://developers.facebook.com/docs/messenger-platform/app-review
The images you linked are for your app as a whole, which is live. You need to get specifically the messenger bot approved.
Until then, you can add specific people as testers who will have access to the bot, pre-approval. This can be done under the roles section.

Facebook PHP SDK 4

I am trying to post to a group in facebook that is managed by me via a facebook app. The funny thing if I log into facebook with my the admin account of the app, then I can see the posts in the group, but if I ask some friend who is also in that group, then he cannot see the posts made via the app. I guess, my app is still running in the Sandbox. Could you let me know if Facebook allows to make automatic posts to a Facebook group where I am the admin? Essentially, my group is about housing offers in a city and I'd like my app to post automatically new offers into my group such that other people can see them as well.
Thanks a lot!
There shouldn't be any restrictions for posts showing up within a Group when posting updates via the API. It could be that posts needs to be approved by the Group Administrator before they appear to users.
If you app is in Sandbox Mode, updates won't appear until you make the app public. You can do this without having to submit permissions for review. As soon as the app is made public, the posts will appear within the group.
If you are the administrator of the group, check the Group Settings to see if posts require approval.

Is it klout api uncompleted yet? Having issus get data through it

Hi I wanna use klout api to get user's score of facebook or twitter. But I could not make a app like what I did when I am using facebook or twitter api. I have two keys: one is oauth key and one is partner key, what's the difference?? How do I make calls using klout apis? I tried here, but still could not make successfully calls, or even add a login button in my page, could someone help me and give me some sample code please, thanks!
Have you registered for an account and received API keys? A few points:
The OAuth API is moderated. Keys generated for it are not activated until approved. You would not be able to add a login button to your page until applying and being approved for a key.
The V2 API is more open, but still requires you to register at http://developer.klout.com/member/register
You cannot currently lookup Facebook users on the API due to Facebook's Platform Terms of Service.
The samples on the pages are generally incomplete in that they require you to include the key, have an active application profile, and have the callback URL set on that application profile.

Sending Facebook messages through their API - possible?

I'm building a web app for a client where members of general public can create an account. Client would like to be able to use my app to send Facebook messages to those members.
Note that my app is a standard LAMP site and NOT a facebook application, nor is there the desire to create one; delivering messages to members' FB inbox is the only goal.
Is this possible, using the FB API or any other way?
In short the answer is no. Facebook do not give you the ability to do this to prevent spam. You could post to all of your user's feeds however?
What you would need to do is:
Register facebook app to get access to FB API. You don't need to have actual facebook app, just use received API key on your standalone site.
Create authentication process on your site so users would be able to connect with your site through facebook.
Ask users for additional extended permissions during authentication to access their email, as it is not something that could be accessed without user's explicit permission.
That's the bare minimum for this task.

Categories