How this Facebook API Program Capture Visitors Name and Email without Permission - facebook

I wonder How this Facebook API Program Capture Visitors Name and Email without Permission. I visited a Facebook page today and found that my name and email automateically appear when I click on the post image. I guess they are doing it with the latest Facebook SDK.
This is the post I am referring to.
This is the page about their API Script.
Can anyone tell me where I can setup the same using PHP. I could not locate any information in Facebooks developer page. Highly appreciate your feedback.
Ishaq.

Looks like Lead Ads, the docs are full of example code:
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/v2.5
https://www.facebook.com/business/help/397336587121938/

Related

How to automatically post to Facebook

Please could you help. I have created a website that allows people to upload listings of items they are selling. I want to know how to add the feature where when someone creates a listing, it automatically posts on the user's FB page, with a link to the listing on our website. Is this possible? Would the user have to log into our website using their FB account for this to happen? Thanks everyone for your help.
Martin
You need to create a Facebook App and use Facebook Graph API with publish_actions permissions to do that. Note that the facebook rules prohibit sending fully automated messages that the user has no control, your user must have the ability to edit the message before sending

Fb App is missing

I find that my app which is recently created(about 5hrs) is missing altogether(with no trace of any existence) and i did not get any notification (or email) from fb which we generally get if we forget to add pivacypolicy to FB App.
It was a sweepstake kind of app where user is asked to participate in the contest by submitting his emailid and phone number. and his participation is posted on his wall with a link to app(using feed post, and link is given out using link parameter in me/feed post).
we posted a status on our client's wall including the app link(even post is missing now).
May i know a place or link where i can find a reason for my app's restriction as i followed all the rules of fb to the best of my knowledge.
Here is the app id if it may help 675743852468369.
Thank you in advance.
Just check your email if any query send to you by facebook because it may be spamming that continously posting or something like that or you have to read facebook policy and updation.

Which app do I need to display facebook feed?

I need to display the "wall posts" from Facebook page to another website's social media wall.
The problem is that I never used neither Facebook nor any other social networks and got no clues on how do they work. That's why I'm pretty confused with API and it's terms.
The API docs say that I need a pageId for the page I'd like to display and appId and appSecret to get an access token to the feed.
I understand how to get the token and how to parse the results - but what kind of Application do I need for that? Should I create a facebook profile and make an application that would generate me these app codes? Or ask a page's owner to do it?
I spent quite a time googling but it must be something too obvious to write about it in docs? Help please?
The administrator of the facebook page is the only one that has access to the posts on the page wall.
For the APP:
The application can be created in any facebook verified account - go to: https://developers.facebook.com/apps and create the new app - this will give you the app id and secret.
Use the Facebook SDK that you feel most comfortable with to develop the app.
For the wall posts: There are several Graph API requests for wall posts in the form of:
https://graph.facebook.com/[pageid]/[call] where [call] can be posts, statuses, feed, home. See http://facebook.stackoverflow.com/questions/6214535/what-is-the-difference-between-feed-posts-and-statuses-in-facebook-graph-api for details about each.
Using an access token (that you said you already know how to get) the administrator of the page will be able to call the above URLs and get the wall posts.
For the part with posting the info on another social media website you have to specify the exact environment where you want the wall posts to end up.

Facebook: get the email of a page (not user) via API

Is there a way to get the email for a page, via any of Facebook's APIs?
I know Facebook user emails are very carefully privacy-protected, but pages seem to be different. For instance: if I visit this FB page, even if I'm not logged in to Facebook, the email is still revealed: https://www.facebook.com/pages/Comcept-Communicatie-Marketing/222648667821245?sk=info
It seems that something so public via their interface ought to be exposed in an API somewhere, but I can't find it. Anyone tell me what I'm missing?
Right now you can't get that information even if you ask for manage_pages and email permissions.
I have raised a bug with Facebook and hopefully they'll add it as a feature if enough people vote:
https://developers.facebook.com/bugs/294577810649098
There is no email for a page in the FQL nor in the page graph api object. So via the API is it not shown. Remember the API is a stripped down version of what you can see via the normal Facebook GUI.
You're best bet is to have the page admin auth your app asking for email permissions.

How to auto-publish wordpress post to facebook fanpage without a facebook app?

My aim is to make a facebook fanpage for a client who wants his blogposts to automatically show up on his fanpage.
I've already read several posts here in the forums. I've tried several methods to auto-publish wordpress posts to a fanpage in facebook.(notes, ...) The last method I used was making an app and using the "Simple Facebook Connect" plugin for wp.
I got quite confusing with this. I have an app called "myClient" and a fanpage called "myClient". If I publish a blogpost, it automatically shows up on the fanpage but "via myClient". Is there a way on get rid of the facebook app? I don't want to show up the via-sentences because the app is just the connection between wp and fb and has no content at all (the content is on the fanpage)
Hopefully you can help me with that!
Thanks in advance.
Whenever you want to publish something on Facebook, you need a Facebook Application as it's the "trusted" connection between your source and Facebook (this is why you have the App Secret and all the authentication/authorization process..etc).
So, How to auto-publish wordpress post to facebook fanpage without a facebook app?
You can't! But what you can do is changing the App name to something the Client would agree on (and not being "already taken", of course!).
You can use the notes facility available. It is updated when the RSS address you provide updates.
Actually there is a way to get rid of the Facebook App - by using third parties automatic Facebook publishing tools like ZapRobot - in that way you actually lean on someone else's FB API APP. Note that then you give "manage_pages" permission to the third party. The process should be:
1) Register with ZapRobot - this is a Facebook login, you give them posting rights to your page
2) Define a job that posts A LINK (ignore their categories) while the link is pointing to the RECENT wordpress item on your blog
Good luck :-)