Facebook Application - Check Users Likes And Display Message

Aug 11, 2010

i want to check a whether a user likes a certain page and if they do i want to display a message or div?

ADVERTISEMENT

Facebook Like Button - Fetch The Users Who Likes The Product

Nov 12, 2010

i am using facebook like buttton

<iframe src="http://www.facebook.com/widgets/like.php?href={url}&amp;layout=button_count&amp;"
scrolling="no" frameborder="0" style="border:none; width:150px; height:25px">/iframe>

=>{url} is dynamic value

also i am using

$facebook->api_client->fql_query('SELECT user_id FROM like WHERE post_id="{url}"');

to fetch the users who likes the product but i am not getting any output.

View 2 Replies View Related

Getting Facebook Likes On Facebook To Translate To On Page Likes

May 31, 2011

If I share a link from my website directly on my websites facebook page and it's liked there, it translates to likes on the actual website page (the like counter increases). I've figured out how to automatically post through php to my websites facebook page but the likes on facebook don't translate to likes on the actual page that's shared. Is there a way to make this happen?

meta tags all appear to be correct, still don't have the likes translating

View 1 Replies View Related

Facebook Application That Allow Users To Upload Image To The Application Album?

Feb 19, 2011

I am trying to develope a facebook application that allows the users to create an album in my application and upload photos to it. I read some articles but those were very confusing. Could anyone tell me where I can get some simple article regarding this. I have no idea where to start from.

View 1 Replies View Related

Facebook Application - Check If Inside Facebook Canvas / Standalone?

Mar 31, 2010

I want to develop a Facebook connect application that can operate both inside a Facebook canvas or standalone. Can I check if the user is using Facebook canvas / not using the official Facebook PHP client library?

View 1 Replies View Related

Ost A Message On A Given Users Facebook Wall?

Apr 11, 2011

Is it possible for me to post a message on a given users facebook wall, if they perform a certain action on my website?Basically, I am looking for a step by step guide to achieve this, as I have not been able to figure out how to do this via the facebook documentation.

View 7 Replies View Related

Posting To Users Walls As Application Using Facebook API?

Jun 9, 2011

I've been building a web app that uses facebook integration for easier registration/login and notifications for the users. However, for the notifications I want to be able to post to a users facebook wall when something happens on our site.

Really I see two possible problems with doing this. First being that the user will most likely not be logged in to our website when the notification needs to happen. Second I have not found a way to post to the feed using any identity other than the current logged in user.

So to reiterate exactly what I'm trying to do. When some action takes place on my site involving Bob, I want the websites application to post on Bobs wall notifying him of the action as if the application is one of Bobs friends. From some of the things I've seen while researching this, it seems as if facebook might not treat applications like users and I might have to go through a page to accomplish what I want.

View 1 Replies View Related

Delete Facebook Session Cookie From Application On Users Logout?

Nov 24, 2010

I am working in an application which is using facebook connect to log in the users using their facebook account.

Everything works fine except in the following case:

1. User logged out from my website and facebook.

2. User try to login again in my app.

In this case when the facebook connect popup opens in says "error in the application".

I found that the reason is that the old fbs cookie is not being removed on users logout. I have added the code to delete the cookie on logout of my app but the cookie isn´t deleted.

Here is my code (using Symfony framework.)

$fbCookie = 'fbs_'.sfConfig::get('app_facebook_application_id');
$cookie = $request->getCookie($fbCookie);
if(!is_null($cookie)){
setCookie($fbCookie," ", time()-3600);

[Code]....

View 6 Replies View Related

Facebook Wall Writing Application That Could Be A List Of All Friends And Just Simply Posting A Message To Their Walls?

Jul 24, 2010

I was wondering if i could possible write an app, that could be a list of all my friends and just simply posting a message to their walls on the friends i select. Not a message, a wall post. So it appears that i went to their wall and wrote a message, they have no idea that an app is pushing the message to them.

also could it be written in python :) its what i know. php is so icky, but doable if it is the only option.

View 6 Replies View Related

Facebook API - Check In Application For Fans?

Sep 9, 2010

I try to create an facebook application. I created a new application and downloaded the framework. In my index.php i do the following:

<?php
require_once 'facebook.php';
$appapikey = '123456...xyz';
$appsecret = '123456...xyz';
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();

[code]....

Without $isfan, it shows me the correct output. But with this question, I always see the else statement (also when I am a fan). Maybe my $pageid is not correct. I showed on my page [URL] and used 107785359249238 as pageid.

View 1 Replies View Related

Get The Number Of Facebook Likes For A Url?

Jan 21, 2011

Ideally I would like to do this using javascript client side scripting only. If that is not possible then I'd like to do this in such a way as to have the server do the least amount of work.

View 2 Replies View Related

Keep A Log Of How Many Facebook Likes A Page Has?

Apr 11, 2011

I want to rank my pages by the ammount of Facebook likes they have (via the facebook like api). Is there any way for me to automatically insert a value to mysql via PHP when the like button is clicked? Or a way for me to collect the ammount of likes for a page then insert that value? Is there anyway of doing this with the Facebook API?

View 1 Replies View Related

Facebook SDK Getting Likes Count?

Jun 23, 2011

I've a facebook app which posts in the user wall. In the post there is a link (to my app) and in the liked page there is a like button.Now I'm making a script that will run once per hour (set from the crontab). In that script I need to get two different likes count:Likes in the message posted in the wall.Likes done in my app (with the button).For the first one I've made this code:

$result = $facebook->api(array(
'method' => 'fql.query',
[code]....

View 2 Replies View Related

Create A Function Where Users Can Check A Message To Delete?

Dec 5, 2010

I am trying to create a function where users can check a message to delete. Obviously if more than one message is checked, they will all be deleted.

I have the following code

<form action="process.php" method="post">
<input type="hidden" name="deleteMessages" />
<?php
while($row=mysql_fetch_assoc($q))
{

[Code]...

I want to pass the checkbox through and if the value is 1, process it and delete it. But how would I achieve this with mulitple messages no matter if there is one message or ten?

View 3 Replies View Related

Use Facebook Api To Check If Invited Friends Installed Application On Profile?

Dec 10, 2009

Does anyone know if there are any ways for me to use facebooks api to check if my invited friends have installed my application on their profile facebook page is this possible if so where can i go to find out?

View 1 Replies View Related

Get Facebook Likes Details Of A Page?

Feb 17, 2011

I have a page on facebook. And i want to get all information about likes of that page even Person's name as well who likes that page. I am admin of that page. I have tried with this:

[URL]

but it is giving empty data. facebook provides only object(i.e. post, photo etc.) likes, but i want to get page's likes information.

View 3 Replies View Related

Display In 1 Page All Users Name And Email From Facebook?

Feb 13, 2011

Is there any query to pull all users name and email from my Facebook APP via Graph Api? BTW I have the extended authorization on email field ;-) The idea is displaying all the info in pairs like...

Name ; Email

View 1 Replies View Related

Facebook Graph Api Gives Empty Result For Likes?

Apr 13, 2011

I'm trying my first very basic Facebook app using php and have stumbled upon a bit of a problem. When being authenticated i can easily enough use the graph api to get information about my account...

$movies = $facebook->api('/me');
echo 'Me';
debug($movies);
which results in a nice array
Array
(
[id] => 1000....
[name] => .............

When I use the demonstration link from the graph api page it displays my likes just fine, but not from inside my app. Anybody has an idea why that might be? As far as I could find out there is no need for extra permission to get the likes of a logged in user, basic permissions should suffice?!

View 1 Replies View Related

Show All Facebook 'likes' And Associated Total Of 'fans'?

Jun 22, 2011

I have been testing a way to show all my facebook 'likes' and the associated amount of 'fans'. The code below works but is very slow, and i assume it is so slow because of the large number of queries that have to go through Facebook's api due to the for each function. Is there a away to do the same thing as i do below, but with only one query (not using the for each)?

[CODE....]

View 1 Replies View Related

API For Getting Total Number Of Likes Of A Facebook Page?

Jan 20, 2011

I am looking for a way to keep track of my facebook page's number of likes every day. Is there an API for it? or any other way?

View 3 Replies View Related

Get Notification When Someone Likes Or Comments Via Facebook Social Plugin

Jan 13, 2011

I have integrated the Facebook Social Plugin into my Joomla Website. I have a Like button and a Comment box.

How can I get notified when someones Likes the page? How do I view a list of users who Liked the page? How do I get notified when someone comments on the page?

View 1 Replies View Related

Find Out Maximum Number Of Likes And Comments In Facebook Using Graph Api?

Feb 14, 2011

I want to retrieve the profile ids from my friends list those who comment and like most of the stuff I put on my wall. So far I have retrieved a list of 30 friends who share the maximum mutual friends with me.

Now I need to sort these 30 again based on comments+likes.I use php.

View 1 Replies View Related

Facebook FQL: Get All Likes That Are Not In Activities,books,interests,movies,music,tv?

Mar 13, 2011

looks /me/likes contains a summary of the FQL ones 'activities,books,interests,movies,music,tv'.

But if you compare both outputs then /me/likes shows much more!

For example just LIKE this Tetris page:url

It will appear at /me/likes but it will NOT appear in 'activities,books,interests,movies,music,tv'.

So how can i retrieve this add. data through FQL?

View 1 Replies View Related

Display A Message On Webpage That Should Be Triggered By A Date Check?

Nov 24, 2010

I am trying to display a message on my webpage that should be triggered by a date check. The code is below (I removed all HTML tags for simplicity for now):
 
$m=date("m");
$d=date("d");
$y=date("Y");  
$int_d = (int)$d;  
[code]...........

View 1 Replies View Related

Check Which Users Log In From The Same IP Address And Display Their Username

Feb 14, 2010

There are 2 tables involved: users and ip_logs. Everytime a user signs in, their ip address is recorded as a new row in the db. So this script is meant to check which users log in from the same IP address and display their username. So username from the users table and ip from the ip_logs table.

PHP Code:
$sqlip="SELECT * from ip_logs where userID='".$data['id']."'";
$queryip=$DB->query($sqlip);
$rowip=$DB->fetch_array($queryip);
echo '<b>IP ADDRESS :</b><br />';
$sql="SELECT users.id as id, users.username as username FROM users, ip_logs WHERE users.id = ip_logs.userID AND ip_logs.ip = '".$rowip['ip']."'";
$query=$DB->query($sql);
[Code].....

View 1 Replies View Related

Testing For Dates: Display A Message On Webpage That Should Be Triggered By A Date Check

Nov 24, 2010

I am trying to display a message on my webpage that should be triggered by a date check. The code is below (I removed all HTML tags for simplicity for now):

<?php
$m=date("m");
$d=date("d");
$y=date("Y");
$int_d = (int)$d;
//Thanksgiving
if ($m="11"&&$y="2010"&&$int_d>23&&$int_d<=28)
{
echo 'Happy Thanksgiving!';
[Code].....

I want each statement to be executed during the appropriate dates i.e. "Happy Thanksgiving" from 11/24/2010 to 11/28/2010, and "Happy Holidays" from 12/18/2010 to 12/31/2010. The problem is that both statement are being executed regardless of the date conditions I use?

View 2 Replies View Related

Voting System - Display How Many Likes And Dislikes

Jul 7, 2011

I have a voting system for posts users make where other users can like/dislike currently is displaying one number. This number is if a user likes, goes to '1' if they dislike goes back down to '0' I want it to display how many like it has and a seperate number for how many dislikes it has I believe my current score code is this.

$net_vote = $row['votes_up'] - $row['votes_down']; //this is the net result of voting up and voting down

Is this correct? How can i make it so it displays both scores? one for 'like' one for 'dislike'

View 3 Replies View Related

Fetching Facebook "likes" Data From A User's Profile Using Old Rest Api?

Jun 23, 2010

Is it possible to fetch the "likes" data from a user's profile using the old rest api ? Specifically FB has launched this new "Likes" feature recently, where a user can Like a page, etc. This information is visible under the "interests and likes" section of the Info page of a user. I am looking for a way to fetch this information using the old rest api. Is there a field in user.getInfo that I can query on that will return this information ?

View 3 Replies View Related

Facebook "like" Button Which Likes Another Page/URL?

Jun 1, 2011

I have a list of links and on each individual page there's a "like" button to "like" that page. But I want a "like" button next to each link in the list which will like the URL of the link next to it (just like it would if you clicked on the link and then the "like" button).

How do I do this?

To create the button on each individual page I use the following code:

<script>
window.fbAsyncInit = function()
{
FB.init({appId: '*****', status: true, cookie: true, xfbml: true});
};
</script>
<div class="share_button btn_fb">
<fb:like layout="button_count" font="tahoma"></fb:like>
</div>

View 4 Replies View Related

Application Facebook - Pass Parameter Into Url Delete Facebook $session?

May 6, 2011

heres my problem. the index.php file

[code]...

It works fine, i do have all the $session information. But as soon as i call index.php?param=x, i dont have anymore my session information. How come?

View 1 Replies View Related

Integrating Your Facebook Event To Your Website Without Creating Facebook Application ?

Feb 21, 2011

I was wondering if it's possible to integrating your facebook event into your own website?and without creating a facebook application (means, you dont have app id, secret etc - you only have eventid/eid)

and what i'm trying to achieve is:

my event is a private event means only invited people can see the event details and I want to list/parse the event wall post, and show it in my website is it possible to put attend/maybe/not attend action on my website i want to show/list photo of my events as well so the application flow more or less would be like this:

once the user come to the site, I'll check

if the user logged-in into facebook then

if user invited to the event then full access to the site return;
else
access denied (sort of)
end if
else
show facebook login form / ask the user to login into their facebook account
end if

what is the effective way to achieve it? should i create FB application?

View 1 Replies View Related

Post On Facebook Application User's Facebook Feed Using CURL?

Jun 11, 2011

I have made a snake game using javascript and HTML5 Canvas element. It can be found at [URL]... I have attained permissions and authorized the app for publish_feed or something using the Facebook Developer Documentation but the problem I am facing is while posting the player's score on his wall.

View 1 Replies View Related

Facebook SDK GetUser() Method Returning Uid Even After Unauthorizing Application From Facebook?

Jun 23, 2011

I'm writing a web app that uses facebook's PHP SDK. I'm using the getUser() method to authenticate users similar to this:

$user = $this->facebook->getUser();
$loginUrl = $this->facebook->getLoginUrl(array(
'scope' => 'email,publish_stream',

[code]....

What I don't understand is why getUser() continues to return my facebook uid even after I've removed the app from my facbeook privacy settings in facebook.

View 2 Replies View Related

Retrieving "likes" Tied To Users From A Database

Oct 24, 2010

I'm new to database structure. I'm trying to create an app that allows users to like certain entries, but I want to be able to tie likes to users so that I can change the visuals before/after the like action.

I think from research that I should have an 'entries' and 'users' table and then have a 'likes' table that ties the two to each other.

The only thing I'm unsure of is, when getting and displaying the contents... how would I write the queries? If I query for all the entries I need, do I then go back and individually query each to see if it has a like tied to it for the current user? That seems like it might be a costly operation. Is there a more efficient way?

View 3 Replies View Related

Dual Posting (facebook & Twitter) From Facebook Application

Mar 31, 2011

I'm working on a facebook app for someone and they would like the ability to edit photos on both the users facebook & twitter profiles (kinda similar to twibbons). This all needs to be done from within facebook however. Now, I'm fairly sure I can handle the facebook element of this ok, but it's the twitter part that has me stuck. Would it be as simple as running an oauth script in the iframe and asking for twitter access - or is this disallowed?

View 1 Replies View Related

Post On Facebook Application User's Facebook Feed?

Jun 10, 2011

I have made a snake game using javascript and HTML5 Canvas element. It can be found at [URL].... I have attained permissions and authorized the app for publish_feed or something using the Facebook Developer Documentation but the problem I am facing is while posting the player's score on his wall. Following the documentation given by FB, you get a Dialog that asks the user before publishing and he can edit the Post. In a game, if I want to post the player's score, I cannot let him edit his petty 100 point score to a 100,000 point score. I have seen many games made on facebook that let the application post the Score of the Player by just a press of a button

View 2 Replies View Related

Facebook SDK - Get User Name And Profile Picture Of App Users Without Requiring Facebook Connect?

Jan 11, 2011

First of all, thanks in advance for reading. I've already posted this question in the facebook forums but after a couple of hours I'm not getting any responses.I've got this app where an user can choose a piece (like in a puzzle). After the user picks a piece, he is redirected to the facebook authorize page and then returned to the app, then I save the user ID and his chosen piece in the database. At this point I've got everything alright... but the problem comes when...

If anyone see the app, he should be able to see the pieces and the PIECES OWNER INFO (name and profile picture).The problem is if the user has not allowed the app yet (facebook authorization page), I can't use the facebook API to get the users who have already allowed the app (because I need an access token and the access token is given only to users who has authorized the app).

So, in short:

I need: get name and profile picture of users who have already authorized the app, without authenticating all users.

P.S: I was trying the "Authenticating as an App" option with PHP+libCURL but didn't work (or I did it the wrong way).

View 1 Replies View Related

Use A Number Of "facebook Likes"?

Apr 26, 2010

I am using facebook like in my site, and my php script need to know how many people like every page. For example I want to use in php echo $likes; where $likes is a number of likes. Is it possible to do?

View 1 Replies View Related

Display The Users Row / Display The Attributes Of The Game Character, Which Is Under The Users Table?

Mar 6, 2011

I want to display the attributes of the game character, which is under the users TABLE. So, I want it to display the specific attributes of the user who has logged in, since it should be in his row. Do I need to register my users with session, because I didn't.

This is the code I used to get the sessions for the user in when login in

<?
if(isset($_POST['Login'])) {
if (ereg('[^A-Za-z0-9]', $_POST['name'])) {// before we fetch anything from the database we want to see if the user name is in the correct format.
echo "Invalid Username.";
}else{
$query = "SELECT password,id,login_ip FROM users WHERE name='".mysql_real_escape_string($_POST['Username'])."'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result); // Search the database and get the password, id, and login ip that belongs to the name in the username field.
if(empty($row['id'])){
// check if the id exist and it isn't blank.
echo "Account doesn't exist.";
}else{
if(md5($_POST['password']) != $row['password']){
// if the account does exist this is matching the password with the password typed in the password field. notice to read the md5 hash we need to use the md5 function.

echo "Your password is incorrect.";
}else{
if(empty($row['login_ip'])){ // checks to see if the login ip has an ip already
$row['login_ip'] = $_SERVER['REMOTE_ADDR'];
}else{
$ip_information = explode("-", $row['login_ip']); // if the ip is different from the ip that is on the database it will store it
if (in_array($_SERVER['REMOTE_ADDR'], $ip_information)) {
$row['login_ip'] = $row['login_ip'];
}else{
$row['login_ip'] = $row['login_ip']."-".$_SERVER['REMOTE_ADDR'];
}
}
$_SESSION['user_id'] = $row['id'];// this line of code is very important. This saves the user id in the php session so we can use it in the game to display information to the user.

$result = mysql_query("UPDATE users SET userip='".mysql_real_escape_string($_SERVER['REMOTE_ADDR'])."',login_ip='".mysql_real_escape_string($row['login_ip'])."' WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."'")
or die(mysql_error());
// to test that the session saves well we are using the sessions id update the database with the ip information we have received.
header("Location: play.php"); // this header redirects me to the Sample.php i made earlier
}
}
}
}
?>

View 1 Replies View Related

Invite Friends From Facebook On Application Using Facebook Api

Oct 12, 2010

I create a application which allow user integration through facebook(connect with facebook).when user sign-in in application , i want to show all facebook friends of sign-in user for invite them to join my application. In current i am using multi friend selector for invite friends.

<fb:serverfbml width="615">
<script type="text/fbml">
<fb:request-form action="action url"
method="POST"
invite="true"
type="invite"
content=" my message">
[Code]....

I want to customize mult friend selector

1 Can change css and show all friend in a single column?
2 can i show disable the friends whose are already connect with my application?

View 2 Replies View Related

Check If The User Is Connected To Facebook And Then Check If He Liked A Page

Jun 25, 2011

Is there is any way of checking if the user is connected to facebook on my external page without having them to allow one of my applications? And the same question goes for "check if the user liked a page". I have checked around 20 questions and 3-4 tutorials and seems like all of them are talking about internal scripts (tabs inside a fanpage/apps canvas pages) and my question is directed only to EXTERNAL pages.

View 3 Replies View Related

Error Message When Attempting To Log Into Facebook?

Dec 17, 2010

Recently I have not been able to log into my Facebook account from my laptop or any computer. The error I get is "INTERNET EXPLORERE CANNONT DOWNLOAD LOGIN.PHP FROM LOGIN.FACEBOOK.COM INTERNET EXPLORER WAS NOT ABLE TO OPEN THIS INTERNET SITE. THE REQUESTE SITE IS EITHER UNAVAILABLE OR CANNONT BE FOUND. PLEASE TRY AGAIN LATER In the background is another screen with on the ribbon says**:0% of login/php from login.facebook.com Completed. Getting file information login.php from login.facebook.com**I'm not a programer or have any idea how to fix this. Can anyone be of assistance?

View 1 Replies View Related

Facebook Like Status Message Box In Drupal?

Jun 17, 2010

I am building a Drupal website and want to have a facebook like box which create a content namely quotation in my facebook. How can I do this in drupal.. Below the box I want to display other quotations

View 1 Replies View Related

Get Facebook User ID From My Application?

Apr 25, 2011

I created a facebook application and send request to a user through below code.Now when a user allow my application then i need his id and email address into my canvas url.But on that below code user don't go to my canvas URL.So,Please help me to solve ,how a user go to my canvas url when he allow my application and i get the user id of that user?My code is below:

require_once 'facebook.php';
$facebook = new Facebook(array(
'appId' => '#######',
'secret' => '###################',

[code]...

View 4 Replies View Related

Setting Facebook Application?

May 31, 2011

i have following setting of my application

sandbox is enable and fbml is disable

but application is visible to only my account. If i login with another account and visit the application url, it says

The page you requested was not found.

if i disable sandbox then says following Error

Switch to regular connection (http)?

and then how to set https from my web cpanel.

Even if disable sandbox then application become unable to access user information

how to solve all that ...So is there any tutorial to setup latest Facebook application with php SDK 3.0
WORKING ONE, THERE ARE ALOT IN GOOGLE BUT WERE OLD AND NOT WOKING NOW

View 2 Replies View Related

ADVERTISEMENT