SVC questions



  • When did this error appeared?



  • When accessing any php file on your server ex. index.php or "…lub.com/english/error.php".



  • I had solve the 500 Internal Server Error, please could you check again why the Facebook login is not working?



  • I did upload all files needed for facebook login, you can see the sample on your server …lub.com/english/index.php

    What you need to do in order to get it work on your server and folder structure:

    • create a facebook app (google) and insert the app ID and app Secret to /login/auth.php
    • your site is located in a sub-directory and the sample was created for root dir, it may work but if you experience any issues, just be aware of the directory structure and apply necessary changes
    • apply any style to the facebook login, I did not copy the original one but you may do so if you wish

    All the above was very simple to accomplish, however I still recommend a programmer with at least basic HTML/php/javascript knowledge to make the site work with your own settings and structure. I did include a sample on how to implement GeoIP Location, just google and use any database/method to get the values.



  • I´m a programer and I understand php/javascript but this is not working at all and it is supposed to work as the demo, that is what you sell me and whay I am asking for.

    I already did what you say, move the site to the root folder and put app ID and app Secret to /login/auth.php (I had already put this on the past) but it is not working anyway, facebook login is not showing at all, please check it out



  • Please, can you check this

    Thanks

    Regards



  • Please, can you check this

    Thanks

    Regards


    @'Video:

    I did upload all files needed for facebook login, you can see the sample on your server …lub.com/english/index.php

    What you need to do in order to get it work on your server and folder structure:

    • create a facebook app (google) and insert the app ID and app Secret to /login/auth.php
    • your site is located in a sub-directory and the sample was created for root dir, it may work but if you experience any issues, just be aware of the directory structure and apply necessary changes
    • apply any style to the facebook login, I did not copy the original one but you may do so if you wish

    All the above was very simple to accomplish, however I still recommend a programmer with at least basic HTML/php/javascript knowledge to make the site work with your own settings and structure. I did include a sample on how to implement GeoIP Location, just google and use any database/method to get the values.

    Please, can you check this

    Thanks

    Regards



  • Gabriel, I cannot do more, there is everything you need. Did you create a facebook app and insert the data?



  • Yes I did that but as I said this is not working at all! And yes, you must do more, you must fix it I was very patient with your company, it was a very very bad thing that you show something on your demo that it was not at all present on what you sell and I had to wait more than 2 month to get the code to use it (everybody buys a script to start using very very fast!) but I can´t tolerate that after wating so much time you send me a code that is not documented at all, very bad explaind and what it´s worst it don´t work at all! So yes, please do more, show me that your code works correcting on my site what it is wrong because I do everything what you say and NO the code is not working at all so please fix it



  • I guess you bought the SVC-RS application, that is a flash app and it's source code. Since 99% of the users are familiar with PHP/HTML/Javascript this should not be something to cause a delay. Anyway, I understand you and will take a look. By the way, I am not working for any company, just trying to help you… ;) now, let's take another look ...



  • You will need several files and scripts in order to create a facebook login for a website (SVC in this case) and pass variables obtained either from facebook and/or any other script. At the end of this description you will find a working sample - including all files mentioned here - compressed in an archive (svc_video-chat_fb-auth_full.zip). Just upload to your server and run it, should work.

    Step 1, create the index.php:

    
    	<title>Video Chat</title>
    
    ```*you will need the following resources:
    
    *   [swfobject.js](http://code.google.com/p/swfobject/) ([download](http://code.google.com/p/swfobject/downloads/list) the latest package -unzip- and place swfobject.js in your root directory)
    *   [jquery.js](https://github.com/jquery/jquery) ([download](https://github.com/jquery/jquery/downloads) the latest package -unzip- and place jquery.js -rename release.js- in your root directory)
    
    you will also need to create login.php and some related resources and chat.php
    
    **Step 2**, creating _login.php_:
    

    $svc_appID,
    'secret' => $svc_secret,
    'cookie' => true,
    ));

    function getAge($p_strDate) {
    	list($d,$m,$Y) = explode("/",$p_strDate);
    	return (date("md") < $m . $d ? date("Y") - $Y - 1 : date("Y") - $Y);
    }
    
    $user = $facebook->getUser();
    
    if ( $user ) {
    	try {
    		//$uid = $facebook->getUser();
    		$me = $facebook->api('/me');
    		if ( $me['location'] ) {
    			$me['country'] = $me['location']['name'];
    			$me['country_id'] = $me['location']['id'];
    		} else if ( $me['hometown'] ) {
    			$me['country'] = $me['hometown']['name'];
    			$me['country_id'] = $me['hometown']['id'];
    		} else {
    			$me['country'] = "N/A";
    			$me['country_id'] = "";
    		}
    		$me['age'] = getAge($me['birthday']);
    
    		$friends = $facebook->api(array("method" => "fql.query", "query" => "SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me())"));
    	} catch (FacebookApiException $e) {
    		$res = $e->getResult();
    		$error = $res["error"]["message"];
    		error_log($e);
    		$user = null; 
    	}
    }
    

    }

    ?>

    
    *   [facebook / php-sdk](https://github.com/facebook/php-sdk/) ([download](https://github.com/facebook/php-sdk/downloads) the sdk and place it -unzipped- in your root directory)
        you may want to rename the long directory name to 'facebook-php-sdk'; in my example, files from facebook-php-sdk-6c82b3f/src directory are moved to facebook-php-sdk/ and I am referring to **facebook-php-sdk-6c82b3f/src/facebook.php** as **facebook-php-sdk/facebook.php**
    
    you will also need to create _auth.php_:
    *you will need the following:
    
    *   [create a facebook app](https://developers.facebook.com/apps) (visit facebook.com/developer and click "+ Create New App", you will receive the App ID and -Secret)
    *   you may also want to request some additional [permissions](https://developers.facebook.com/docs/authentication/permissions/) like age -birthdate-, location, gender, etc
        use the permissions in this format: **$svc_perms = "user_location,user_birthday";**
    
    **Step 3**, creating _chat.php_:
    

    = $friends_minimum_limit)) ): ?>

    = $friends_minimum_limit)) ): ?>
    
    			To view this page ensure that Adobe Flash Player version 
    			10.0.0 or greater is installed. 
    			[![Get Adobe Flash player](http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif)](http://www.adobe.com/go/getflashplayer)
    

    <noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="666" height="397" id="VideoChatSingle">
    <param name="movie" value="VideoChat.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <?php if ( !empty($me) ): ?>
    <param name="flashVars" value="userName=<?=$me['first_name']?>&sex=<?=$me['gender']?>&age=<?=$me['age']?>&country=<?=$me['country']?>&id=<?=$me['id']?>" />
    <?php endif ?>

    				<!--[if !IE]>-->
    				<object type="application/x-shockwave-flash" data="VideoChat.swf" width="666" height="397">
    					<param name="quality" value="high" />
    					<param name="bgcolor" value="#ffffff" />
    					<param name="allowScriptAccess" value="sameDomain" />
    					<param name="allowFullScreen" value="true" />
    					<!--<![endif]-->
    					<!--[if gte IE 6]>-->
    						<p> 
    						Either scripts and active content are not permitted to run or Adobe Flash Player version
    						10.0.0 or greater is not installed.
    						</p>
    					<!--<![endif]-->
    						<a href="http://www.adobe.com/go/getflashplayer">
    						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
    						</a>
    					<!--[if !IE]>-->
    				</object>
    				<!--<![endif]-->
    				<param name="wmode" value="transparent" />
    			</object>
    		</noscript>
    
    		Error: minimum requirements not met.
    
    		    Signing in to Video Chat.
    
    		    <fb:login-button size="large" show-faces="false" autologoutlink="false" background="white" scope="<?=$svc_perms?>">Login with Facebook</fb:login-button> 
    
    		    or [login without Facebook](javascript:unhide('login_box_svc');).
    

    <form method="post">

    			    <label class="input">Username</label> 
    
    			    from 
    
    					<option value="'.$location.'">'.$location.'</option>';
    
    				    foreach($country_list as $key => $value)
    					{
    					echo '<option value="'.$value.'">'.$value.'</option>';
    					}
    
    				echo '';
    				      */
    			    ?>
    
    				 <select tabindex="3" name="age" style="width: 80px;"><option value="N/A">age</option>
    				    " . $i . "";
    					}
    				    ?></select> 
    
    				 <select tabindex="4" name="gender" style="width: 80px;"><option value="N/A">gender</option>
    				    <option value="male">male</option>
    				    <option value="female">female</option></select> 
    
    		    </form>
    
    
    *   to populate the country list and to make users able to select their country, simply create a file called **country.php** and inside the file create a php array with all countries:
        [attachment=123]
    *   you may use any [GeoIP detection method](http://www.ahowto.net/php/use-maxmind-free-geolitecountry-for-geo-targetting-visitor) instead of the php array (recommended)
    *   and some styling for the whole page/login boxes:
        ```
        	.login_box {
        		margin-left:auto;
        		margin-right:auto;
        		width: 500px;
        		height: 100%;
        		padding: 15px;
        		border: 15px solid #6778AE;
        		-moz-border-radius: 4px;
        		-webkit-border-radius: 4px;
        		background-color: white;
        		overflow: auto;
        		text-align: center;
        	}
    
        ```
    
    and **here is everything**: [attachment=124]
    - upload to your server
    - create the facebook app
    - edit /login/auth.php (insert facebook App ID and -Secret)
    - enjoy


  • facebook / php-sdk is missing, pls. read above and use the provided links

    *you will need the following resources:
    facebook / php-sdk (download the sdk and place it -unzipped- in your root directory)
    you may want to rename the long directory name to 'facebook-php-sdk'; in my example, files from facebook-php-sdk-6c82b3f/src directory are moved to facebook-php-sdk/ and I am referring to facebook-php-sdk-6c82b3f/src/facebook.php as facebook-php-sdk/facebook.php



  • for my web application I need to chose which two people get matched up for video chat (through a search process). can this software support the joining of two specific users for video chat?

    scenario:

    userA is to be matched up with userB
    redirect both users to the chat page, passing in each users information forcing them to chat (not random)

    thanks!



  • Can this software be used to set up a video chat between to specific people?

    For example, both users are decided prior to chatting, then they are both automatically directed to the chat page, passing in user information from both users to the chat software.



  • @'noskop2dafaccio':

    for my web application I need to chose which two people get matched up for video chat (through a search process). can this software support the joining of two specific users for video chat?

    scenario:

    userA is to be matched up with userB
    redirect both users to the chat page, passing in each users information forcing them to chat (not random)

    thanks!

    not the SVC-SR (Single Random) the SVC software is capable but I am not sure you can get that source released yet. Come back with a post in about a week. Thank you!



  • @'noskop2dafaccio':

    I want to use my own network of people, not the default one that it is connecting to. How can I do this?

    You can use any database, any website to connect your users but as I mentioned, at the moment random video chat only



  • @'Govido':

    @'noskop2dafaccio':

    for my web application I need to chose which two people get matched up for video chat (through a search process). can this software support the joining of two specific users for video chat?

    scenario:

    userA is to be matched up with userB
    redirect both users to the chat page, passing in each users information forcing them to chat (not random)

    thanks!

    not the SVC-SR (Single Random) the SVC software is capable but I am not sure you can get that source released yet. Come back with a post in about a week. Thank you!

    In the download package "SVC-SR0.9_video_chat_free.zip" there is no configuration.php or registration.php. Also, is the above source ready yet? Thank you so much for your help.



  • Configuration and preference based tuning of the software is optional and can be found in commercial packages only. The source is sold separately only to SVC developers (SVC libraries): http://videosoftware.pro/software/buy-now



  • @'Govido':

    not the SVC-SR (Single Random) the SVC software is capable but I am not sure you can get that source released yet. Come back with a post in about a week. Thank you!

    Is this available yet?



  • Expected in Q1 2013 with a major release. No promises though, depends on the developer.


Log in to reply