w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
A application Post on User's walls using Facebook PHP registration API?
Your token is granted only for the permissions you specifically requested when you requested the the application be authorized by the user. To be able to post to a users wall, you need to ask the user to authorize the appropriate permissions. Here is the facebook reference for requesting these permissions: https://developers.facebook.com/docs/facebook-login/permissions/#adding Depending on your app, you'll need to ask for either/both publish_actions or publish_stream when you get initial authentication from the user.

Categories : PHP

Posting a message to User's walls as application using Facebook PHP registration API?
Why you are using iframe?? it use withing facebook .You dont need to use this. just write php code for publish. thanx if(isset($_POST['mapp_message'])){ try { $facebook->api('/me/feed', 'POST', array( 'message' => $_POST['mapp_message'] )); $sent = true; } catch (FacebookApiException $e) { error_log($e); $user = null; //do something about it } } this is my code and its working fine on my wall

Categories : PHP

Storing user info to database after facebook registration in joomla
Try this, If you are using FB SDK for PHP $path = realpath('.'); require_once($path."/facebook/fbmain.php"); $user = $facebook->getUser(); // print_r($user); // echo "user<br/>"; // print_r($userInfo); // echo "<br/>Info<br/>"; // print_r($fqlResult); // foreach($fqlResult as $key=>$value){ // print_r($value); // echo '<br>'; // } // exit; if ($user){ $fname = $userInfo['first_name']; $last_name = $userInfo['last_name']; $username = $userInfo['id']; $dob = date("d-m-Y",strtotime($userInfo['birthday'])); foreach($fqlResult as $

Categories : PHP

How to resolve user registration and activation email error in Django registration?
As the error says, the behavior of the template url tag changed in Django 1.5. It used to take only plain text as the view name, so it didn't have to be quoted. It's useful to be able to pass in view names as context variables, so the syntax changed. The docs describing this change say: In Django 1.5, the behavior of the url template tag will change, with the first argument being made into a context variable, rather than being a special case unquoted constant. This will allow the url tag to use a context variable as the value of the URL name to be reversed. https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url You can still just use a string constant if you quote it appropriately, though - your email template should look like this: http://{{ site.domain }}{% url "re

Categories : Django

how to create user registration with help of liferay registration portlet
Instead of creating new registration portlet i suggest you to modify existing registration portlet uisng hook or you can add more fields into it using custom field facility. Let me know if you want more info. HTH

Categories : Java

Facebook login on page - what when user delete app in own account?
I'm presuming by "still have my app on his account" you mean your app is still authorized to access that user's account with whatever permissions you've requested/the user granted when signing onto your site. If you've followed Facebook's instructions on implementing Facebook Login for Web on your site (https://developers.facebook.com/docs/facebook-login/getting-started-web/) you are probably already set to handle user revoking FB permissions from your app (or deleting your app from those allowed access to his/her account). Basically, when a user accesses your site and uses Facebook login you send a request to FB API to check their current login status: https://developers.facebook.com/docs/facebook-login/login-flow-for-web/#checklogin and if the returned result indicates that they are,

Categories : Facebook

Can I post in facebook user wall and facebook fan page automatically when user is not active?
If a user authorized your app once, you can get the long-lived token (expiry: 60 days), and then use this to do actions on the user's behalf at any later time (till the token is expired- you'll have to refresh the token in that case) Here's how you can exchange the normal access token with the long-lived token: Expiration and Extending Tokens And to refresh the long-lived token, you have to repeat the same procedure again, by logging-in the user to your app again.

Categories : Facebook

Is there a way to programmatically insert a new user into a MyWSAT implementation (Windows Forms user registration)?
I can't speak about MyWSAT since I do not use it, however, here's what I do know... Since this is a SQL Server database, I would suggest using SQL Profiler when adding a user. See what comes out of the trace and go from there. With luck, maybe you can use one stored proc to create the user.

Categories : C#

Registration using Facebook Connect API
All you need is to call a webservice from facebook object Facebook facebook = new Facebook(appId); SessionStore.restore(facebook, context); String response = facebook.request("me"); And then you will get a JSON object in response and you can parse it as per requirements

Categories : Facebook

How to add locale into the Facebook Registration Plugin via iframe
The locale parameter you've entered spa_EC is not valid since there is no spa language code in iso639-2 standard. also there shouldn't be surrounded by quote marks. &locale='spa_EC' from Facebook documentation pass the locale parameter set to be a POSIX locale, which is a 2 letter lowercase language code then an _ followed by a 2 letter uppercase country code. So it should be &locale=es_EC.

Categories : Facebook

getting data from JSON from facebook registration to netsuite
Netsuite uses Javascript on server-side. It has an extensive API that can be used to integrate any kind of third party service in Netsuite. You can use nlapiRequestURL(http://suitecoder.appspot.com/static/api.html) to send/receive data from Facebook. Also please clarify that what do you mean by netsuite registration . So that a more relevant answer can be given.

Categories : Javascript

Authentication using Facebook with Passportjs: what is accessToken for, what should I store after registration?
You should store facebook Id. It should be in the profile object. Access token will change according to facebooks policy of authorization. What you should be doing is Get the user to login through facebook Check his facebook id against the facebook id in your database. Access tokens expire frequently as described here

Categories : Node Js

How to delete a post on facebook using a delete button link
I'm not sure if I undrestand correctly, but as you said and is stated in the Graph API docs, it's only possible to delete Posts your app has created. Deleting Posts from other apps is denied from the Graph API.

Categories : Python

facebook registration plugin location field not writing to mysql
Facebook Basically, it's an array. [location] => Array ( [name] => Delhi, India [id] => 1.1604xxxxxx286E+14 ) Use this for getting location stored in your db, like I have written below: $location = $response["registration"]["location"]["name"];

Categories : Facebook

App rejected on 11.13 (New user registration is not appropriate)
You are probably trying to sell something, that could be part of your app. For that you should use the IAP api, that means 30% to Apple. You should dimostrate them that what you sell is not a part of your application or a subscription service. The whole 11 chapter of Apple store guidelines is about purchasing. You must be really sure that what you are selling cannot be "part" of your application or you need to use In App Purchase.

Categories : Iphone

User to be logged in on registration - Spring
Since you are circumventing springs authentication handling, you'll have to do server side authentication and authorization. this link shows how it can be done: http://javafx.steveonjava.com/javafx-in-spring-day-3/ Authentication authToken = new UsernamePasswordAuthenticationToken(username.getText(), password.getText()); try { authToken = authenticationManager.authenticate(authToken); SecurityContextHolder.getContext().setAuthentication(authToken); }catch (AuthenticationException e) { header.setText("Login failure, please try again:"); header.setTextFill(Color.DARKRED); return; }

Categories : Spring

Add field to Devise user registration
If it is rejecting the attribute then i suppose you need to add this to the application controller. def configure_permitted_parameters devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:nickname) } devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:nickname, :email, :password) } end I hope you are talking about this.

Categories : Ruby On Rails

django-registration with custom user
I would simply comment, but due to my lack of posting am unable. Anyways... As lalo stated, django-registration doesn't really support custom users. You could try doing this. I added an extra field to my model and made those changes, which allow me to create users but failed to save the value of my extra field. So I would say that custom users + django-registration can be done, but you will likely end up overriding many classes/methods provided in django-registration and thus it may be easier to try to create it all from scratch. That's my brief experience, at least.

Categories : Django

Analyze this user registration approach
To start, the password should never be passed around. As soon as your site collects it, it should be salted, hashed, and stored in the database never to leave again. It definitely shouldn't be emailed or passed in a query string, and for all intents and purposes, encoding is no better than clear text. Second, sensitive data in the querystring should be avoided in general. From a security standpoint, you would generate a crypto-secure random token with a short expiration to be sent in the email and use that to identify the user when they return to activate. I would suggest sticking to the tried and true registration approaches, and just dealing with the extra tables and columns. Generally speaking, when it comes to security, rolling your own solution is a bad idea (A rule of thumb that I

Categories : C#

Best Practice for User Registration using PHP + Phonegap
consider that every APK can be unpacked, and so readable! in more of that, if you don't use SSL, all your request can be sniffed (like Jamie says) try to make a code changing in the time, like a reverse encryptionable string, time based.

Categories : PHP

User activation registration with CodeIgniter
change: $this->form_validation->set_rules('user_name', 'User Name', 'trim|required|min_length[4]|xss_clean'); $this->form_validation->set_rules('email_address', 'Your Email', 'trim|required|valid_email'); to $this->form_validation->set_rules('user_name', 'User Name', 'trim|required|min_length[4]|is_unique[users.user_name]'); $this->form_validation->set_rules('email_address', 'Your Email', 'trim|required|min_length[4]|valid_email|is_unique[users.email_address]'); If your Form_validation.php does not have is_unique() function, then add: public function is_unique($str, $field) { list($table, $field) = explode('.', $field); if (isset($this->CI->db)) { $query = $this->CI->db->limit(1)->get_where($table, array($field => $s

Categories : PHP

Setting up a user registration in Java
You should create a "user" class, which has each piece of information (name, password etc.) as a property, and make an ArrayList of that class instead. Your idea of an ArrayList of string arrays could work; but having a type to describe your data makes things much easier and is a better practice. For example, suppose you were reading someone else's code. I think you'll agree that: Authenticate(u[0], u[1]); Is less readable than: Authenticate(u.username, u.password); Over time, if you wish to add more data to a user, it's easier to deal with new properties than with an ever growing array of strings.

Categories : Java

Allow e-mail invite for user registration
I've implemented something very much like this. Most of the hard stuff is already built in to Orchard, it's just a case of utilizing what is already there. Create a new User, using their email address as the username (only to act as a placeholder), and a random password. Their registration status should be set to "pending" to prevent them logging in until they have gone through the invite process. ** When it comes to sending the email, use the IUserService.CreateNonce(...) method to create a unique token for the new user. Use this nonce to create a URL, e.g. ~/invite/{nonce}, insert it into your email and send it out via IMessageManager.Send(...) (we actually trigger a rule to do this - it allows other stuff to be triggered at the same time and is also a hacky way of allowing the outgoi

Categories : Dotnet

PassportJs. How can I get facebook redirect uri without redirecting user after call passport.authenticate('facebook')
Passport is poorly documented on this issue - I struggled with it for a long time as well. I found you can call passport.authenticate(type, fn)(req, res, next), and within fn, you can distinguish between a user who can login and a user who can't. It's up to you to call req.logIn though. Just FYI, I'm assuming you're using sessions: module.exports.createSession = function(req, res, next) { passport.authenticate('local', function(err, user, info) { if (err) { res.json(500, {ok: false}); } else if(!user) { // you would probably want to do more work here // for example distinguishing between bad login credentials, // canceling, users not ready to log in (pending), etc. res.json(401, {ok: false}); } else { req.logIn(user, function(err) {

Categories : Angularjs

callback issue in Facebook while user clicks anywhere while Facebook login page is loading
Goto onCreate() method of WebDialog.java in FacebookSDK library, you will find following statement: spinner = new ProgressDialog(getContext()); add the below statement after it spinner.setCanceledOnTouchOutside(false); you are ready to go!

Categories : Android

Fetch facebook user public data, which available without loggining througth Facebook Graph API if any exists
This isn't possible unless you have an access token. The public graph doesn't reflect the browser information it reflects what is given in the documentation https://developers.facebook.com/docs/reference/api/user/

Categories : Java

How to recognize returning Facebook User using the Facebook Login Widget
I have been working on a similar application which uses either Facebook (OAuth), Google (OpenId) or a manual registration login approach. My prefered solution was to ask the user for their email address, you will need to request extended permissions on the email field from Facebook as it is not offered up by default. http://developers.facebook.com/docs/authentication/permissions My table structure looks like this. User Id (int) Email (nvarchar(256)) FacebookToken (nvarchar(256)) GoogleToken (nvarchar(256)) The advantage to this method is you are able to link up your users to the right account if you decide later to add another authentication / identification service or roll your own. It won;t matter if they login to FB, Google or Twitter - you always know whcih account t

Categories : C#

How can I open a com.facebook.Session to get user's facebook friends list?
session.openForRead(new Session.OpenRequest(this).setCallback(callback).setPermissions(Arrays.asList("your_permissions"))); This link might help you. EDIT: public void getBirthdays(){ Request fBdays = Request.newMyFriendsRequest(Session.getActiveSession(), new Request.GraphUserListCallback() { @Override public void onCompleted(List<GraphUser> users, Response response) { if(response.getError() == null){ for(GraphUser usr:users){ Log.d(TAG,usr.getName()); } } } }); Bundle requestParams = fBdays.getParameters(); requestParams.putString("fields", "name,birthday,picture");//for extra properties fBdays.set

Categories : Android

Facebook user email is not accessible in some devices of Android for Facebook sdk 3.0
In my opinion, you should create an object of OpenRequest as shown on this link of Stack Overflow. It might solve your problem. :- Set permission for getting User's email ID from Facebook Login

Categories : Android

User registration and logging in a server for Node.js.
For user authentication system you can use passport.js. Regarding logging in when user comes later, you need to use session and for better consistency, it can be even shared session storage. Here is good article for that. If you have shared session, then many services that store session there, will be able to restore session and authentication data. Session is using cookies (usually), and they are one of the important data that is used in order to restore session ID, in same time there is more than that (browser data, end point (IP)), so it is still very reliable, and stealing cookies - will not allow you to get into someones session so easily. In order to keep "remember me" login system, you need reliable and long lasting sessions on server side, that expire something like in 7 days a

Categories : Node Js

RoR: redirecting user after registration with devise and cancan
You can have look on the links given below. Rails 3 and Devise: Redirecting to page following signup (confirmable) overiding devise after_sign_up_path_for not working How-to: Devise after_sign_up_redirect?

Categories : Ruby On Rails

Design Patterns for User Registration process
I really hate when some one forces me to use a design pattern because they should emerge out of design. Anyway, if I had to use something just for the sake of using I would go with the Repository pattern for structuring the data access layer and would use the Separated Interface design pattern mentioned by Martin Fowler to implement that, and to stuff in another one, I would go for the Layer Supertype pattern and make a base class for all domain layer entities such as user, admin, login_info, etc.

Categories : C#

Disable User Registration email in wordpress
I have 2 possible solutions for you: 1) It's not for the faint of heart, but if you really want to you could try hacking the pluggables.php file in the includes directory. Keep in mind that updating Wordpress would nuke this. I suspect it would involve modifying this function: function wp_new_user_notification() You can find it around line 1190 in pluggables.php. 2) Alternatively I know the old version of the Register-Plus plugin, included an option to disable user registration e-mail notifications. Presumably the newer Register-Plus-Redux still offers similar functionality.

Categories : PHP

User registration verification with their device IMEI/ESN?
Alternative Question: If it is not possible then how i'll send 4 digit code(like viber) on user number after register into application ? You can generate unique alpha-numeric strings from server side and Map as per your requirement . if you are using java server then following code would help import java.util.Random; public class RandomString { private static final char[] symbols = new char[36]; static { for (int idx = 0; idx < 10; ++idx) symbols[idx] = (char) ('0' + idx); for (int idx = 10; idx < 36; ++idx) symbols[idx] = (char) ('a' + idx - 10); } private final Random random = new Random(); private final char[] buf; public RandomString(int length) { if (length < 1) throw new IllegalArgumentException("length < 1:

Categories : Android

User registration validation through email with Spring Roo
I solved this using a REST call and Spring Security. When the user first signs up, you create the UserDetails object (mine was in a DB table), but set it as not enabled before you save it (there are 4 booleans in the UserDetails object you can manipulate to enable/disable the user in various ways that Spring Security checks). I also stored a UUID code I generated off the user id in a table, and then generated an email which included a link to the REST service to validate the account. The REST service was simple. The user clicks the link, which would include the UUID code I generated. You could optionally require them to enter some number or do something here as another authentication step, but in my case I simply looked up the UUID to get the associated UserDetails, flipped the bit to

Categories : Validation

How to update profile table on user registration
You can try events: http://laravel.com/docs/events Make a On.user.create event and build a listener that does the things you need. I'm not sure, but you could try to put that code that updates the Profile in the User Constructor.

Categories : PHP

EmberAuth sign in user on successful registration
I am currently doing the same thing, making the additional request. But I did look into the implementation a little bit. Ember-Auth has a dummy request adapter that just returns without making the request, using opts.status to determine what to return. The trick is to switch out the _request adapter from the Auth instance, on demand. The project uses EmberScript which is an extension of Coffeescript that I am unfamiliar with. So the extra request is good enough for now. :)

Categories : Api

Passport Authentication immediately after New User Registration
Here's the solution I came up with after reading about req.login: app.post('/register', function(req, res) { // attach POST to user schema var user = new User({ email: req.body.email, password: req.body.password, name: req.body.name }); // save in Mongo user.save(function(err) { if(err) { console.log(err); } else { console.log('user: ' + user.email + " saved."); req.login(user, function(err) { if (err) { console.log(err); } return res.redirect('/dashboard'); }); } }); }); I would like to clean it up a bit and think that the err section could be more robust, but this is a functioning solution. Note that is someone else implements this, they should be aware that it is tailored to using the passport-local strat

Categories : Node Js

Facebook spamming user@facebook.com email sent from server
Facebook is transitioning away from the ability to send emails via an API call on Mar. 1st. To compensate, they allow apps to now ask for a user's email address directly. If you set the email domain in your app's settings, then asking for the email extended permission gives you the users email address instead the ability to send an email via the API. As of Mar. 1, the API will stop working and you are left alone to figure out your own email solution. This goes for regular notifications, both user to user and app to user, as well From here And: Please note: We are in the process of deprecating the REST API, and will not be adding support for this in Graph API. Developers should directly send email to users once they are granted permission. From here However

Categories : Facebook

Getting Facebook Access Token from User Id and Facebook App Secret?
The way to do it was using "The Login Flow for Web (without JavaScript SDK)" api to get a user access token. A user access token is required to be sent with graph api queries in order to get page posts. The first step is to create an app on facebook where you specify what information you want the program to be able to access via the graph api. The end user will then choose to accept these permissions later. The program creates a web browser frame and navigates to https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri=https://www.facebook.com/connect/login_success.html&response_type=token The response type "token" means that when the (embedded) web browser is redirected to the redirect_uri the user access token will be added to the end of the url as a fragment. E.g

Categories : Facebook



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.