Limit 10 firends in Facebook Send Dialog - facebook-apps

Is there any ways to allow user send message to only 10 friends in Facebook app?
I did not found any options for it in the document.
https://developers.facebook.com/docs/reference/dialogs/send/

It's not possible (as of 2013-04). You can pre-populate the To: field with Facebook usernames, but the the user is presented with a send dialog where he can still edit/add/remove any friends (i.e. he can add more than 10 for example).

Related

Hello Bar webhook Integration with coldfusion

I am using hellobar popup on my website. Hello bar popup has a contact form with email field. A user comes to site and provide its email to subscribe. Then hello bar sends that information of user to the owner of using email tools and webhook. I have created a webhook URL which triggers nicely when a user submits the form but it never sent any data. I am supposed to have JSON response but it is always empty.

Change Gmail API Name on Login Screen

I made a script using Gmail API to get list of contacts. The script working fine but I want to make it more better as for now, when Login POPUP of Gmail is opened it displays this
xxxxxxxxxx.apps.googleusercontent.com is requesting permission to:
Manage your contacts
Where xxxxxxxxxx is my Client ID. I dont want it to be shown. I want to display my API Project Name here like this
"My API Name" is requesting permission to:
Manage your contacts
Is this even possible to do this? If yes then how?
Thanks
Perhaps try this out:
Search for "Google API Console" in the browser.
On the API console page, on the left hand side menu bar, under "APIs & auth", click on "Consent Screen". Setup project name, upload logo, etc.
See if this helps.
I also seem to remember that during oAuth, you need to pass Application Name (which can be the same as Product Name found in Consent Screen option at step 2 above.

OAuth access_token request -> forbidden

Yesterday I wanted to get an access_token from my account, tried several websites, every time I tried it I got a white page with "Forbidden".
Does Instagram lock the API Access from User?
Thanks
I didn't have any problem, using oauth.io with a simple Instagram connect:
OAuth.popup("instagram", function(e,r) {
if (e) {
$('#results').html('error: ' + JSON.stringify(e));
return
}
$('#results').html('result from instragram: ' + JSON.stringify(r));
});
You can try directly on http://jsfiddle.net/bumpmann/4Ef8p/ and it should reply something like:
{"access_token":"...","user": {"username":"...","bio":"...","website":"...","profile_picture":"http://images.ak.instagram.com/profiles/...","full_name":"...","id":"123456789"}}
If you don't get that, you have most likely a problem with your Instagram account (or your environment if it works on another device)
here is the solution
login to your instagram account from pc browser
go to Edit Profile
change some of your profile info. example: add or delete some text to Bio
Click submit. a new screen will apear which show you a security picture type the text from picture.
after that you will be able to get access token.
You got "forbidden" because of new instagram "captcha" feature. I cannot still find any official information about it, but if user passes captcha on his mobile, authorization will work again.
For the people those don't understand.
Just go to instagram and reset your password than you will see the captcha.
After filling this in you can retreve the acces token with your application

Set Request Dialog multi-friend selector to show only users 21+

I have a request dialog within a page tab app. I'm hoping not to have to ask the user for any permissions. I'd like the user to be able to send a request to friends (the request dialog is working fine), but I want only friends that are 21+ to come up in the users multi-friend selector. Is this possible?
The Requests dialog has a filters parameter you can use to define which users do/do not appear in the requests dialog.
You can also request the friends_birthday permission from your users and filter out the friends who do not have a visible birthday or where it is <21 years old.
If users absolutely must not see the app if they're under 21, just restrict your entire app via the API or app settings so those users don't see the app, its content, or requests from it.
You may use custom multi-friend selector for this , just like : mikebrevoort's plugin, and do a check on age and send the request.

Facebook Registration Plugin prefills fields without permission?

My understanding was that the registration plugin allows you to use the same reg form for users not registering with Facebook as well with Facebook. However, if a user is logged into Facebook and visits the registration page the form prefills information and only gives them the option to register with Facebook. That's kind of a freaky user experience. They hit the register button on your website and it auto fills fields with Facebook info without permission. Just because a user is logged into facebook doesn't necessarily mean they actually want to create the account with their Facebook information.
Here's what I have handled so far by the registration plugin:
User is not logged into Facebook and registers via the plugin, but with my site authentication not Facebook.
User is not logged into Facebook, uses the plugin to log into Facebook, fields are prefilled and user registers via Facebook.
Here's what I dont have handled
3. User is already logged into Facebook, but may want to register with my site authentication and NOT connect the account to their Facebook account. Currently, it prefills the forms and provides them with only a register button connecting Facebook to my app.
Basically, I want the user to have to opt-in to register with Facebook even if they are logged into Facebook, but I want to use the Registration plugin form. Is this possible?
I hope that makes sense.
A user can clear the fields by ckicking the X when mouseover the name field
What you need to do is something similar to Scribd approach, where you can by default wrap and hide the "Login with facebook" button (or the registration form if the user is already logged in and connected!) and for example in your form div/container have a checkbox (a location over the flow is preferred) stating:
Register with my Facebook account
Or something more catchy and when the user clicks/checks the input the facebook DIV will slide down and used instead of your registration routine.