facebook-oauth

Is there any way to fetch all Facebook events in a specific city?

喜欢而已 提交于 2019-12-02 19:11:05
Can I fetch all Facebook events in a specific city? All I need is event IDs nothing else. It should be all events (public), not only someone's events. Will Facebook let us fetch that info? Severiano Elmcity does a simple search for a keyword in the event title. Try "Lancaster" for example. You'll get events in the UK, PA, NY OH and CA. You can also search for a non-location based word in the title like "picnic" and the script returns events. You can try to query for events by location. With the graph API use the "Center" parameter in a search query: https://graph.facebook.com/search?q=*&type

window.open without popup blocker using AJAX and manipulating the window.location

白昼怎懂夜的黑 提交于 2019-12-02 17:19:47
When dealing with OAuth from the server, such as Twitter and Facebook, you most likely will redirect the user to an URL asking for app permission. Usually, after clicking a link, you send the request to the server, via AJAX, and then return the authorization URL. But when you try to use window.open when the answer is received, your browser blocks the popup, making it useless. Of course, you can just redirect the user to the new URL, but that corrupts the user experience, plus it's annoying. You can't use IFRAMES, but they are not allowed (because you can't see the location bar). So how to do

Omniauth-facebook hash not showing Facebook 'username' field, using rails 3

我与影子孤独终老i 提交于 2019-12-02 12:02:06
I've set up my rails 3 app to use omniauth-facebook, everything works fine but when I look at the omniauth hash as yaml there is no 'nickname' field, I can get the 'name' and 'email' but my validations fail to create a user because I can't grab the nickname for my app's username requirement. I've double checked my facebook account, under "Settings", and my username is displayed. ANy ideas why this would be happening? Thanks for the help. Here is an example of my omniauth hash, i've placed 'X' for privacy reason: --- !ruby/hash:OmniAuth::AuthHash provider: facebook uid: 'XXXXXXXXXXXXX' info:

IOS: SECURITY WARNING: The above URL is not valid for a cash card or gift card

人盡茶涼 提交于 2019-12-02 10:06:42
问题 My IOS app uses a facebook login button. When you click on the button, it brings up the Facebook login prompt. After entering your information, it brings up a white screen that says: SECURITY WARNING: The above URL is NOT NOT VALID FOR A CASH CARD OR GIFT CARD . Giving away the URL may result in your account being HIJACKED . I can't seem to find anything online about this problem. Any ideas where I should start looking? We're using the client side flow as recommended by facebook for Desktop

(OAuthException) (#200) User must have accepted TOS on C# - Facebook

佐手、 提交于 2019-12-02 00:05:13
Well, I am trying make a app to write comments to facebook in C#. Searching in google I know that I need an Application (I did it) and I need select the permissions. I did it.. Now I wrote my code in C#: private string MyAppId = "XXX"; private string MyAppSecret = "XXX"; private void button1_Click(object sender, EventArgs e) { FacebookClient FB = new FacebookClient(MyAppId, MyAppSecret); Dictionary<string,string> data = new Dictionary<string,string>(); data.Add("message","test"); FB.Post("OBJECT_ID/comments", data); } But when I click the button I get this error: (OAuthException) (#200) User

How can I remove all potentially cached tokens or session IDs on Android?

放肆的年华 提交于 2019-12-01 22:48:42
An odd question, but hopefully someone has an answer. I am developing a mobile app that will connect with Facebook. Everything was working fine and had been for about a week. I could authorize and remove authorization and post to a user's feed. On Saturday or Sunday I modified my request to add offline_access. Around that time (unfortunately I cannot be sure exactly when) I started receiving failures coming back saying the access token was invalid ("Error validating access token: The session has been invalidated because the user has changed the password."). I know this to be false because I

How can I get the credential secret in Meteor, when I do Facebook.requestCredential on the client?

佐手、 提交于 2019-12-01 21:23:24
I'm trying to implement a login/link account system like the one in this question . (scroll down to where it says "Methods for explicit associations") You used to be able to get the user's login data with something like this: data = Package.facebook.Facebook.retrieveCredential(token).serviceData Now it looks like this retrieveCredential(token, secret) . Here's the commit where that happened. I for the life of me can't figure out how to get the credential secret on the server after I call: Package.facebook.Facebook.requestCredential( requestPermissions: Accounts.ui._options.requestPermissions[

OAuthException : An active access token must be used to query information about the current user

百般思念 提交于 2019-12-01 17:50:02
I'm trying to run the sample code for Facebook connect that I downloaded from http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/ I get this error message : [error] => Array ( [message] => An active access token must be used to query information about the current user. [type] => OAuthException [code] => 2500 ) You can try on my website : http://facebook.oliverjordan.net/thinkdiff Here is the fbmain.php code : <?php //facebook application $fbconfig['appid' ] = "463007877113xxx"; $fbconfig['secret'] = "-sensor-"; $fbconfig['baseurl'] = "http://facebook

Sign in with Facebook oauth, without full facebook.com access

与世无争的帅哥 提交于 2019-12-01 16:14:23
A web application I'm currently developing needs users to be able to sign in via Facebook OAauth. However the problem is, all these users are behind a firewall that blocks access to facebook.com (company policy). We've looked into several solutions to get around this, like; Putting a (squid) proxy between Facebook and the users. This could solve the problem since squid supports fine grained regex-based ACLs. However, most of the Facebooks OAuth strategy runs on www.facebook.com and inspecting PATH_INFO to whitelist specific paths is not possible if the users use HTTPS (which is mandatory).

Sentry 2 Facebook Oauth On Laravel says Call to undefined method ::profile()

陌路散爱 提交于 2019-12-01 13:10:46
问题 I am using Laravel 4.1, and using facebook/php-sdk with sentry actually it's derived from this questions answer: Facebook Login with Sentry, A password is required for user [email], none given This code isn't working any more: $profile = $user->profiles()->save($profile); throws this error: How to resolve it? route for that is available here Route code My models are as bellows: Profile model: <?php class Profile extends \Eloquent { public function user() { return $this->belongsTo('User'); } }