I was wondering if it's possible to integrating your facebook event into your own website?
and without creating a facebook application (means, you dont have app id, secret etc - you only have eventid/eid)
and what i'm trying to achieve is:
my event is a private event means only invited people can see the event details
and I want to list/parse the event wall post, and show it in my website
is it possible to put attend/maybe/not attend action on my website (any hint/example - much appreciate)
i want to show/list photo of my events as well
so the application flow more or less would be like this:
once the user come to the site, I'll check
if the user logged-in into facebook then
if user invited to the event then
full access to the site
return;
else
access denied (sort of)
end if
else
show facebook login form / ask the user to login into their facebook account
end if
is that possible? and what is the effective way to achieve it? should i create FB application?
Thanks in Advance
You need a Facebook Application
You should grant the user_events,offline_access permissions and save your event ID and access token somewhere (this would answer your second point of listing event's wall post)
Now that you are able to list your event's data, users should authorize and grant your application the create_event permission.
Then refer to this answer to check how to rsvp a user (access_token here is the user's access token not the one you got from offline_access)
Please note that I don't guaranty the result of the above depending on your event privacy setting, so the best thing to do is test it.
Related
I am able to fetch event details in my php based website through Facebook graph API only if the event is uploaded in facebook page. But if I use a personal fb account instead of fb page I am not able to get any data. In both cases I am using same access token, App ID and Secret key, the only variable is facebook account id. I could not find any answers on internet so kindly help.
You need user_events permission from the user whose events you want to read.
I need implement a functionality in save/update function, of my customers system:
In each save/update, I need get this informations, and send to a Facebook Page (every the same Page).
But my problem is: this system is used by a lot users, and some users do not have a Facebook account, so: How can I post in same Page without login?
I know the offline_access are removed, so, what the best solution in this situation?
I don't find any way, to get the Page Access Token
I create some APP in my personal account of Facebook, but, when I try post in this Page, I get a access unauthorized for this user/app
Sorry for my english.
For you to post updates on to the Page's feed there are few things you would require
An User with administrative or content publishing permission to atuhorize your application with manage_pages Extended permissions. If you have implemented the login, you can add these permissions there, or alternatively you can use Graph Explorer with your application selected to get started.
After you have been authorized then you can retrieve the Page Access Token by querying /me/accounts which would return data as shown in this documentation. You can then utilize the access token you retrieve for the corresponding page to do your job of posting updates.
I am always reading about Facebook and Twitter logins for someones website.
The integration using one of theses services is okay, but my questions is how can I access both API´s for one user.
Example:
User is logged in on my website (active session). Now he somehow has to grant me access to his user details etc. on facebook AND twitter. How do I realize that? I don´t want him/her to type in his facebook or twitter credentials everytime he logs in to get his access token (oAuth).
How do I get my own oAuth user access token after using my websites login, so I can interact with Facebook and Twitter´s API.
Is this correct?
Thank you very much, if you can help me.
Facebook
When someone logs into the Facebook account, they stay logged in until they actively log out.
The way to test for this is:
FB.getLoginStatus(function(response){
if response.status === 'connected'{
// The user is logged in
var access_token = response.authResponse.accessToken;
// Do whatever you need to do
} else {
// Get the user to log in
}
});
See here for more details:
https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/
Twitter
The process is a little more complex for Twitter, but if you only want to display tweets, consider Web Intents.
Otherwise, follow these steps:
https://dev.twitter.com/docs/auth/3-legged-authorization
Both platforms have the ability to check whether or not the user is logged in first, so you shouldn't have to worry about someone having to log in every time they use your site. However, you cannot use the same oAuth token on both sites - you must get a separate one for each.
Each individual API will need a popup to authenticate, which will redirect to the appropriate api for authorisation, and then once you have the token after the authorisation redirects back to your popup.
You will then end up with a token that you can pass back to the calling page "window.opener" and store the token for that api in a Javascript variable by alling a Javascript funcation on the main page.
window.opener.getInstagramData("self", oauth_token);
Each authentication needs to have its own token and needs to be a button that the user should click on.
I am using this method to get Facebook, Twitter, LinkedIn Foursquare and GooglePlus account info.
Hope this helps.
I have created a facebook app for a companies facebook pages. Ie the app is used as a special tab on the facebook pages.
Can I get it to post to the current user's wall without having to ask the user to install and authorise the app in the way you would for a fully fledged app like farmville?
FYI - I'm currently using the latest PHP sdk
Can I get it to post to the current user's wall without having to ask the user to install and authorise the app in the way you would for a fully fledged app like farmville?
No, users must always explicitly give an application permission to post content. It'd be hugely abused - any tab you visited might spam your wall to hell.
Your app cannot post info on the user's wall unless explicitly given permission by the user. The user has control over all aspects of their account and having non-consensual access results could result in wall spamming.
Therefore if your app wishes to post to their wall, explicit permission is required.
First of all, thanks in advance for reading. I've already posted this question in the facebook forums but after a couple of hours I'm not getting any responses.
I've got this app where an user can choose a piece (like in a puzzle). After the user picks a piece, he is redirected to the facebook authorize page and then returned to the app, then I save the user ID and his chosen piece in the database. At this point I've got everything alright... but the problem comes when...
If anyone see the app, he should be able to see the pieces and the PIECES OWNER INFO (name and profile picture).
The problem is if the user has not allowed the app yet (facebook authorization page), I can't use the facebook API to get the users who have already allowed the app (because I need an access token and the access token is given only to users who has authorized the app).
So, in short:
I need: get name and profile picture of users who have already authorized the app, without authenticating all users.
P.S: I was trying the "Authenticating as an App" option with PHP+libCURL but didn't work (or I did it the wrong way).
P.S2: Sorry if I have writing mistakes, my speaking language is spanish.
Thanks again... A LOT!!!!
No authentication nor breach of TOS required if you have the IDs, as profile pic and name are public information
Proof?? Right Here in this JSON.