w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Facebook Connect: difference between App Domains and Website with Facebook Login
Site URL If you want to integrate your website with the facebook, you certainly have to tell facebook the URL to your site where you want to integrate! So obviously, this field is mandatory if you want to integrate your website with fB. App Domains Not mandatory to mention the app domain in the settings. This is just used to lock down the domains and sub-domains which can be used to perform Facebook Login on behalf of your app.

Categories : Facebook

How can I work locally with facebook login with the settings of App Domains and Website with Facebook Login?
Let's say you are doing local development and your app hosted locally with url: http://localhost:53750/ Go to your settings on Facebook: Apps-> YOUR_APP_NAME -> Settings -> Add Platform Select WebSite and enter your url and save changes After that you should have something like: Done. Try to login from your web app.

Categories : Misc

Facebook Login with multiple completely different domains
I also had same problem.So i just came out with redirecting user to my root domain & when user is authenticated redirect to request domain's main page with encrypted data & a little user's info(if you wish you can provide user info by api access). Encryption should be strong enough & should depend on date time....to make hard for recognizing...& then store data in sessions ,from main page redirecting user to requested page. In whole process you will have to preserve the url from which user is redirected.

Categories : PHP

Allowing multiple domains for 1 Facebook App (like Tumblr)
Go to developers.facebook.com. Click on your application and edit the settings. Add domains to that in the following form: example.com, example.org, subdomain.example.com (no http). Save. That’s the only way to do it, at east for the present time. You either add domains (and subdomains) manually or you can’t proceed.

Categories : HTML

Using facebook connect on multiple domains/subdomains
It is technically possible to use Facebook Connect on multiple domains, there are some limits (5 domains max). So the key to doing this is adding all domains in the App Domain field under your app settings. The PROBLEM, however, is that Facebook only lets you add domains that are derived from your Canvas URL or Site or Page tag URLs, so if you try to enter anything else you get an error that looks like this: The SOLUTION is to create App on Facebook, Website, and Facebook Tab using the ADD PLATFORM button and then put in URLs that point to your other domains. Here is an example of what I mean: If you use a unique domain for each field you can max out with 5 different domains. I have tested this technique with up to 3 domains, but i think it should work for all 5. Note: Faceboo

Categories : Facebook

Facebook swf embed works only for selected domains
I believe the answer to this is that the swf file needs to be on an https link (see how to share a video from my website on facebook like youtube)

Categories : Facebook

Facebook Javascript - URL not allowed
You need to provide the URL of the actual app that you're using to access your facebook app using the API. Even if it is localhost, you need to set the correct URL in order to be able to test. Check the FB developers documentation for more details

Categories : Javascript

Localhost Facebook Given URL is not allowed by the Application configuration
From your facebook app settings, add platform and provide this Site Url: localhost:your_port No need to mention App domain to test from localhost. This worked for me in Website platform.

Categories : Facebook

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK
What works for me is using the actual URL of the production server, and then adding a line to the hosts file that redirects all traffic from that URL to localhost. Let's say your website is called potatoes.com. In "Site URL" write: http://potatoes.com/bookbayapp and then open your hosts file (C:WindowsSystem32driversetchosts) and add the following line: potatoes.com 127.0.0.1

Categories : Google Chrome

Can a single hosts file entry contain multiple domains/sub-domains?
I found the solution. On IIS, I had to add https in bindings associating it to use IIS Development Certificate for SSL in my development environment. Also, in the process I found that both of the following wiil work for me. 127.0.0.1 somedomain.com, alternate-domain.com, subdomain.domain.com or 127.0.0.1 somedomain.com alternate-domain.com subdomain.domain.com Spaces and commas both work, and I can add multiple domains, subdomains combinations on same line. Also, if you are moving from a non-secure domain to secure domain/subdomain, SSL certificate needs to be setup on web server for it, else it would end up showing an error in the browser. Cheers!

Categories : Asp Net

mod rewrite: handling sub domains, top level domains and query string
You just need one rule as QUERY_STRING is automatically copied over to after redirect. RewriteCond %{HTTP_HOST} !^example.org$ [NC] RewriteRule ^ http://example.org%{REQUEST_URI} [R=301,L]

Categories : Htaccess

Is a third party website allowed to post messages on facebook, on behalf of another site?
As far as I know there is no Facebook guidelines that restrict what you want to achieve, so I may safely say that yes, you can create an app so that a person visiting sample-shopping-site.com can share on facebook via a-sharing-app.com . I can even mention a well know service that is doing the same, Disqus. How you can implement this feature is a little up to you but may I suggest what Disqus or apps like it are doing is, they use the JavaScript API of Facebook to integrate and are mostly enabled within an iframe that loads content from their domain. The exchange of information between sample-shopping-site.com and a-sharing-app.com is done by the JavaScript loader which loads the necessary iframe then. The other things you would like to check would be Dialogs which you may use for differe

Categories : Facebook

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings
I ran into this issue when I was doing some learning exercises a few days ago while creating a Facebook app and using Heroku as the host. My problem was that I had the wrong URL in my Facebook app settings for the "Website with Facebook Login" field value. Also, for some hosts the URL may change depending on settings etc., so check your hosting URLs for the app and make sure you have the correct URL in that field on Facebook app settings. Once I updated mine, the error went away and all is fine. Good Luck! Connie

Categories : Facebook

Andriod-can i use in.myapp.app1 as package name instead of com.myapp.app1? because in domains are much cheaper than com domains?
I´m not sure what are you asking... Yes you can use whatever package name you want. When you create the new project modify the package name field. Like this: But when will you pay for the "domain"?? I am not understanding you...

Categories : Android

(Actionscript 3/Facebook SDK) "Facebook not defined" Facebook.init() not working
ReferenceError: Error #1065: Variable com.facebook.graph::Facebook is not defined. that means your program cannot see the reference class please check your Build Path SWC or ANE and build your project then retry

Categories : Facebook

Facebook App request not sending to Facebook friends through Facebook Android SDK
Direct the request Bundle params = new Bundle(); params.putString("message", "I just smashed " + application.getScore() + " friends! Can you beat it?"); // 2. Optionally provide a 'to' param to direct the request at a specific user params.putString("to", "515768651"); // Phil showDialogWithoutNotificationBar("apprequests", params); Suggest friends Bundle params = new Bundle(); params.putString("message", "I just smashed " + application.getScore() + " friends! Can you beat it?"); String [] suggestedFriends = { "695755709", "685145706", "569496010", "286400088", "627802916", }; params.putString("suggestions", TextUtils.join(",", suggestedFriends)); showDialogWithoutNotificationBar("apprequests", params); Ref : http://developers.facebook.com/docs/tutorials/a

Categories : Android

Allow sub domains, but don't match www
You can add a ServerAlias before the VirtualDocumentRoot to catch the www. subdomain: ServerAlias www.* VirtualDocumentRoot /home/%-2.0.%-1.0/www The top example would catch all www. subdomains. To have the server behave as desired for all other subdomains, add another ServerAlias for all other subdomains like: ServerAlias * VirtualDocumentRoot /home/%-2.0.%-1.0/www/%-3.0 Hope this helps

Categories : Apache

How do I break out of an iFrame only for certain domains?
You can use another condition... var allowedDomains = ["stackoverflow.com"]; if (allowedDomains.indexOf(top.location.hostname) == -1 && top.location!= self.location) { top.location = self.location.href }

Categories : Javascript

MAC OSX: Cannot run multiple local domains
I stumbled across this same problem... In your httpd-vhosts.conf file (/private/etc/apache2/extra/httpd-vhosts.conf after showing hidden files) add the following for each domain... <VirtualHost *:80> ServerName mysubdomain.dev CustomLog "/root/to/site/logs/mysubdomain.dev-access_log" combined ErrorLog "/root/to/site/logs/mysubdomain.dev-error_log" DocumentRoot "/root/to/site/mysubdomain.co.uk" <Directory "/root/to/site/mysubdomain.co.uk"> DirectoryIndex index.php Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> </VirtualHost> Then restart apache. Everything else you have seems to be the same as my setup. Make sure you have the correct permissi

Categories : Osx

How many domains can be associated with an EC2 instance simultaneously?
The question isn't very clear but with just one ElasticIP you can host nearly infinite domain names to that IP. Then use Apache Virtuahosts, or IIS equivalent, to serve the websites. Just point the needed DNS records to the ElasticIP associated to the EC2 instance. There are many possible limitations to this, like storage, memory, SSL certificates on the same IP, etc.

Categories : Amazon

multiple domains to have different page_on_front
If you check out the $_SERVER reserved variable in PHP here you can use the indices to check the URL and build a condition on it. In your case $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'] should do it. Example $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // $url returns http://domain.name/path If you have different domains forwarding to the same site and you want them to redirect, you could condition it so that when the domain name in the address bar matches a specific rule, then redirect. if($_SERVER['HTTP_HOST']=='domainA.com') { // do something with domainA } elseif($_SERVER['HTTP_HOST']=='domainB.com') { // do something with domainB } else { // do something with anything else }

Categories : Wordpress

php copy() on same server different domains
Try editting your /var/www/vhosts/domain1.com/conf/vhost.conf file. If it doesn't exist, create it. Then add the following line: php_admin_value open_basedir "/var/www/vhosts/domain1.com/httpdocs:/var/www/vhosts/domain2.com/httpdocs" Save the file and then reload your apache configuration by running this command on the command line assuming you have priviledges: /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain1.com

Categories : PHP

My website showing on two domains
I see you have put php tag so I would suggest something like this: if ($_SERVER['HTTP_HOST'] != 'rtc') { exit; } However its better to handle this kind of things in your http server settings. For example Apache has virtual named hosts.

Categories : PHP

Liferay overriding other domains
I'm not sure which part of the situation is unclear for you. I assume that all content is served through Apache, but portalsite.com is just proxied by apache, then relayed to Liferay. Assuming your portal runs on tomcat or another appserver that supports "AJP", read about mod_jk and how to use it to relay traffic to your portal. You'll end up with a configuration for a virtual host that is somehow similar to this (pseudo-code-configuration, only typed here, never tested, beware the typos...) # external "workers" configuration file for mod_jk, defining # connection properties for JkWorkersFile /path/to/your/jk/configuration <VirtualHost *:80> ServerName portalsite.com # all content should be forwarded to tomcat... JkMount /* your_tomcat_worker # ...except

Categories : Apache

Heroku with Multiple Domains
Before pushing Try this:- $ git remote add heroku git@heroku.com:yourappname.git ( to add current stack ) $ heroku keys:add ~/.ssh/id_rsa.pub (if stuck with key then add local machine key to heroku) $ git commit -m "message" $ git push heroku master <branch name>

Categories : Ruby On Rails

Same session_id() values for different sub domains in IE
did you try to specify session cookie domain validity? //for page1.php session_set_cookie_params(time()+3600, "/", "abc.example.com"); //for page2.php session_set_cookie_params(time()+3600, "/", "xyz.example.com"); from php.net for function session_set_cookie_params Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script. Thus, you need to call session_set_cookie_params() for every request and before session_start() is called. This function updates the runtime ini values of the corresponding PHP ini configuration keys which can be retrieved with the ini_get().

Categories : PHP

Using any/fake domains with ejabberd
Your initial problems (unable to access the server by using m.chat.com) were almost certainly DNS issues, and it seems you have isolated that down to the time taken to update the record. Your second question - about the fact that you can name virtual hosts without restriction, is simple but interesting. What makes you think there should be any kind of restriction? It would be like you dictating that I can't save "m.chat.com" in a file on my disk, or that I can't send "m.chat.com" in a message across the internet. This is why DNS exists and is structured the way it is. Although I can tell my server that it hosts facebook.com, nobody will connect to it because the DNS record for facebook.com does not point at my server (users generally don't set the "connect host" manually). Which begs the

Categories : Facebook

Use cakephp session with two different domains
You need to connect to the first website's database and compare user session with user cookies. $db = new mysqli("localhost", "user", "pass", "db"); $id = $db->escape_string($_COOKIE["id"]); $session = $db->escape_string($_COOKIE["session"]); $check = $db->query("SELECT data FROM cake_sessions WHERE id = '" . $db->real_escape_string($id) . "'"); $checkarr = $check->fetch_assoc(); if($session == $checkarr["data"]) echo "logged"; not tested; also I'm not sure about cakephp authcookes, so they're probably wrong.

Categories : PHP

jQuery: Set cookie for two domains
Well, if you want to extend it to the domain and not only a specific subdomain, just use domain : 'mydomain.com' instead of : domain: 'sub.mydomain.com'

Categories : Javascript

Nodejs: want to map domains to server
If you use something like node http-proxy or nginx you can run each of the separate sites on different local ports and then map the domain name back. I use the http proxy but others love nginx. For that to work, you'll need to add DNS entries resolving to the IP address that your reverse proxy is running on. Then for example, the port 80 request will get mapped back to localhost:3000. This allows for each app to run in isolation and in separate processes from the other sites. They can't crash each other. You also don't have namespace issues where both apps claim the same path. My app.js for the http proxy looks like this: var proxyPort = 80; var http = require('http'); var httpProxy = require('http-proxy'); var options = { router: { 'localhost': '127.0.0.1:3000',

Categories : Node Js

Pow domains not loading in Chrome
Thanks to user Dan Reedy (see above) I was able to fix this by moving from OpenDNS to the Google DNS 8.8.8.8 and 8.8.4.4 settings. Now, pages load faster and Pow servers are working again. And they seem to actually load much faster. Awesome!

Categories : Ruby On Rails

Magento and multiple domains
The apache virtual host setup is wrong. You need separate virtualhost entries for each domain as the following: <VirtualHost *:80> ServerAdmin webmaster@domain1.com DocumentRoot /var/www/http ServerName domain0.com </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@domain2.com DocumentRoot /var/www/http ServerName domain1.com </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@domain3.com DocumentRoot /var/www/http ServerName domai2.com </VirtualHost> And also the .htaccess file in your Magento root directory: SetEnvIf Host www.domain1.com MAGE_RUN_CODE=domain1_com SetEnvIf Host www.domain1.com MAGE_RUN_TYPE=website SetEnvIf Host ^domain1.com MAGE_RUN_CODE=domain1_com SetEnvIf Host ^domain1.com MAGE_RUN_

Categories : Apache

Codeigniter: One site, two domains
In DB config file write a condition like this if(strpos($your_current_url, 'domain1') !== FALSE) : /* * DB CONFIG FOR DOMAIN1 */ elseif(strpos($your_current_url, 'domain2') !== FALSE) : /* * DB CONFIG FOR DOMAIN2 */ endif;

Categories : PHP

facebook notifications alert from facebook API/using facebook API
You can subscribe for Real Time Updates. The Graph API has a feature called 'Real Time Updates' that enables apps to subscribe to changes in certain pieces of data. When a change occurs, an HTTP 'POST' request will be sent to a callback URL belonging to that app. This makes apps more efficient, as they know exactly when a change has happened, and don't need to rely on continuous or even periodic Graph API requests when changes aren't happening. Note that real-time updates only indicate that a particular field has changed, they do not include the value of those fields. They should be used only to indicate when a new Graph API request to that field needs to be made. You can subscribe for changes in a single object or in an array of objects. See Receiving the Rea

Categories : Android

Facebook iOS SDK: scrumptious facebook not posting to Facebook
Found the answer here: IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log Gotta specify fb:explicitly_share in the action object and explicitly set the privileges under Open Graph->action type in your Facebook App Open Graph settings.

Categories : IOS

Is it possible to create a javascript api that only allows certain domains to call it
I don't have many experiences with JavaScript APIs, but I know that there isn't a real way to secure your JavaScript code. If your Code is used in any Website there is always a way to get to it.

Categories : Javascript

Google OAuth WildCard Domains
Wildcard origins are not supported, same for redirect URIs. The fact that you can register a wildcard origin is a bug. You can use the state parameter, but be very careful with that, make sure you don't create an open redirector (an endpoint that can redirect to any arbitrary URL).

Categories : Javascript

How can I allow email addresses from two different domains using Regex?
By grouping the evaluation () and placing an or operator in it | you'll be able to handle either domain. See the below modified regex: 'email' => '/^[w.+-]{2,}@(DOMAIN1|DOMAIN2).[a-z]{2,6}$/',

Categories : PHP

multiple domains in server - howto
You have a few options that I know of, mostly depending on whether traffic goes to the same ip or not. When setting up DNS entries you can specify wildcard for subdomains. *.example.com which makes it so that any request for any subdomain that isn't match by another DNS record goes to example.com. So, having: *.example.com <ip A> blog.example.com <ip B> Would make blog.example.com go to < ip B> and example.com and all other subdomains go to < ip A>. This means you could have the possibility of giving each new subdomain go to its own ip (very unlikely). You can also catch them all at the same ip and handle it there. As you mentioned, you could add a new virtual host for each new sub domain created. However, that's kind of a heavy solution, and I think it

Categories : Apache

My wildcard sub-domains are not working properly
Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www. [NC] RewriteCond %{HTTP_HOST} ^([^.]+). RewriteRule ^$ http://www.mosto.in/user.php?user=%1 [L,QSA,R]

Categories : PHP



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