In Dbconfig.php :
<?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'dbusername'); define('DB_PASSWORD', 'dbpassword'); define('DB_DATABASE', 'databasename'); $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error()); $database = mysql_select_db(DB_DATABASE) or die(mysql_error()); ?>
In fbconfig.php:
<?php define('APP_ID', 'xxxxxxxxxxxxxxxxxx');//add your App id define('APP_SECRET', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx');//add your App secret id ?>
in twconfig.php
<?php define('YOUR_CONSUMER_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxx');//add your twitter consumer key define('YOUR_CONSUMER_SECRET', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');//add your consume secret key ?>
in logintwitter.php
$request_token = $twitteroauth->getRequestToken('http://redirect url');
No comments:
Post a Comment