Facebook IFrame App Validating Registration Form Fields - facebook

I'm creating a website in C# ASP.NET and I'm trying to integrate Facebook. I've used a Facebook IFrame as my registration form and the Facebook C# SDK here http://facebooksdk.codeplex.com/ to access Facebook user details. So far I've figured out how to add the fields I require in the Facebook IFrame, and using the SDK I know how to decrypt the data posted back to me from the signed request field server side.
My question is how can I add validation to the fields before they are posted? It seems that the password field I've added to the Facebook IFrame registration form already has some validation since the password must be at least 8 characters, but I'm not sure how this is being done or if/how I can possibly customise it.
Hopefully someone out there can help point me in the right direction. Thanks for reading.

Sigh! To answer my own question I finally found this documentation here...
http://developers.facebook.com/docs/plugins/registration/advanced

I've reviewed that documentation and still can't find a way to add custom validations to fields such as 'email'. It appears to me that only custom fields can have validations. Have you experienced this as well?

Client side validation in registeration plugin is only available in "xfmbl". you cannot perform validation using iframe.. see advance uses of registration plugin..
https://developers.facebook.com/docs/plugins/registration/advanced/
under the heading of Client Side Validation, it clearly states
*
If you want to add validation to any of your fields during
registration, you must use the XFBML version of the plugin, since the
iframe can't do cross domain communication.
*
hope it helps...

Related

ionic 3 deeplinking for reset password

I am creating a mobile application using ionic 3. I need to know the logic to implement reset password functionality. till now, i am able to send an email with reset token to the user.
I was thinking that id user clicks on the link in the email, if app is installed then it should open the application page dedicated for reset password.
So i did a little research and found that it can be done using DeepLinking ( custom url to respond) like myApp://resetPassword/{token}
Now the problem is in gmail when you send link with custom url, it removes the href option.
Can some one tell me slight information to implement this functionality and some articles to read.
Thanks,
I found this issue https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/81 concerning this href removal in gmail.
They recommend - just as user1027620 - to create a regular html page and use JavaScript redirection to do the trick.
I guess you will indeed need JavaScript to get the arguments (unique token...) from the url and copy them in the myApp://resetPassword url.

Integrating PunBB login system with the rest of my site

First off, I am presuming this is possible please correct me if I am wrong.
I have a simple login / registration system on my site now, however decided to delete this when installing PunBB discussion board. I prefer PunBB's login to my own so I was wondering whether it is possible to make login to the site only achievable through PunBB. Is their an extension for this? Or do you know of any useful sources that will help me implement this? Thank you in advance.
Undoubtedly, PunBB uses some kind of cookie or hash to determine if a user is logged in or not. Simply use that cookie or hash in your own pages to determine who is logged in when you're not on a PunBB page.
There's probably an include file you can use for that purpose.
Please see this page for information on implementing PunBB functionality into other parts of your website and details of the database schema.

Facebook authentication mechanism changed?

My application is running within an IFrame and has been running fine for month. Since last week, the main page keeps refreshing because it looks lie the parameters auth_token and fb_sig_session_key are not provided to my iframe content anymore.
Has anything changed on the platform lately with that regard ?
Many thanks for your support.
Jonathan.
According to the Facebook Signed Request, you are only provided oauth_tokenalong with some other data, but nothing that looks like fb_sig_session_key. Try looking through the tutorial on the signed request, as well as the other authorization tutorials on Facebook. They provide the most up to date information.
If you are still using the Legacy Canvas Auth, you'll want to read the passage there about migrating. Instead of fb_sig_session_key, you should use Use the oauth_token for all API calls.

facebook registration plugin with working solution

Can somebody show me a working code example of facebook registration plugin in asp.net? I need to fetch the data from the url.
I dont want to use any 3rd party dll's and toolkit. Isn't there a simpler way of doing this..? really frustrated now.I simply want to get data from the registration plugin.
There are tons of question over here without any answer...please don't redirect me to some other pages. If you know the answer please post it here..
I am using the iframe example as shown on the developers.facebook.com website.
I need an asp.net c# sample.
Thanks.
Why dont you check out http://developers.facebook.com/docs/guides/web. They hav given step by step as to how to have a registration plugin.
Here is some c# code to decode the signed_request.
How to decode OAuth 2.0 for Canvas signed_request in C#?
If the code works for you, can you send me a pull request and I'll put it in my example set?
https://github.com/ptarjan/signed-request

Validate login page in Twitter in iPhone

I am woking on twitter application. I have used "Twitter Request" package and implemented in my application and posted a tweet messages successfully. Now i want to validate the login page, whether the user typed the user name and pass word is correct or not. If the user types the correct datails, the message will be posted otherwise display some alert message. And i have one doubt, which API is used to better in the appln?(MGTwitterEngine,Oauth etc.,). I am very new to this topics. So please guide me. Is there any sample code or tutorials are availble for validation?.
Thanks.
Follow the link.
http://www.reynoldsftw.com/2010/03/using-xauth-an-alternate-oauth-from-twitter/
http://aralbalkan.com/3133
I hope definitely it will help you.
Twitter Request Package is not enough to implement TWitter (to validate) login authentication and for implement that before you should be known about OAuth or XAuth process. I successfully implement that with XAuth authentication after period of long time. If you follow the link then you can do twitter validation as you expect.Click Here