Is it possible to get the number of likes on multiple facebook pages and display it on a webpage.
For example if I had four different pages on my site for each of the teams in a school competition.
On the red teams page I only want the user to be able to like the red page but I want to show how many likes the other teams have.
I have reviewed the documentation but don't seem to be able to find a way to do this. Is anyone able to point me in the right direction here?
<table>
<tbody>
<tr>
<th>Team</th>
<th>Number of Votes</th>
</tr>
<tr>
<td>Red Team</td>
<td>
<span>100 <!--Display number of likes from http://www.facebook.com/redteam --></span>
<span class="btn-fblike">
<fb:like href="http%3a%2f%2fwww.facebook.com%2fredteampage" layout="standard" colorscheme="dark" width="320" height="25"/>
</span>
</td>
</tr>
<tr>
<td>Blue Team</td>
<td>
<span>80<!--Display number of likes from http://www.facebook.com/blueteam --></span>
</td>
</tr>
<tr>
<td>Green Team</td>
<td>
<span>60 <!--Display number of likes from http://www.facebook.com/greenteam --></span>
</td>
</tr>
</tbody>
Some further investigation found that the best way to do this is use Facebook Query Language
Related
I have a new signature and I use Outlook 2003 to send out my emails. The graphics within are sourced from a server. The email+signature look fine, but when somebody using Gmail replies to me, the graphics within the email become attachments for them.
Previous answers suggest having the graphic on a web server, but I do this already. One possible fix I have seen is using moz-do-not-send="true" ...but that is only for Mozilla it seems, is there not a global alternative or another fix I could use?
Many thanks.
<span><a href="http://www.website.co.uk" target="_blank" ><img src="http://www.website.co.uk/allowed/images/logo.jpg" border="0" hspace="10" /></a></span>
I have been messing with this for a while now and I may have found a fix.
First, I created a complete HTML file.
<table cellPadding="0" cellSpacing="0">
<tbody>
<tr>
<td style="vertical-align:top"></td>
<td>
<div><font size="4">Name</font></div>
<div>Title</div>
<div><span style="margin-right:8px">phone</span></div>
<div><span style="margin-right:8px"><a style="color:blue" href="mailto:email">email</a></span></div>
<div><span style="margin-right:8px">address</span></div>
<div style="padding: 0 0em 2em 0;">
<img src="http://CDN/Facebook.jpg?7" alt="Facebook" />
<img src="http://CDN/Twitter.jpg?5" alt="Twitter" />
<img src="http://CDN/Instagram.jpg?3" alt="Instagram" />
<img src="http://CDN/Linkedin.jpg?2" alt="LinkedIn" />
</div>
</td>
</tr>
</tbody>
As you can see, I added a ? and then a number after my image source. So far, in two days of testing from Outlook (I admit, I am using the web interface and have yet to test from the app) to Gmail then replying back to Outlook - all of my replies send the signature as they should.
I opened my HTML and copy and pasted the signature into Outlook.
Fingers crossed this continues to work and hopefully this helps someone else.
I am abel to test my emails under system>transactional emails.
My email looks correct when i click on the preview button, but when i send it out and recieve the email the email comes in as text only. so all i see is the html code wich deffinitley NOT what i want. Any reason why my email shows up correctly under preview but not when it is actually sent out?
Below is what my template looks like in the Magento add email template.
{{template config_path="design/email/header"}}
{{inlinecss file="email-inline.css"}}
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="email-heading" style="text-align: left;">
<p><strong>Name:</strong> {{var data.name}}</p>
<p><strong>Email:</strong> {{var data.email}}</p>
<p><strong>Telephone:</strong> {{var data.telephone}}</p>
<p><strong>Service Requested:</strong> {{var data.service-requested}}</p>
<p><strong>Comment:</strong> {{var data.comment}}</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
{{template config_path="design/email/footer"}}
A recorded test script includes a google search.
After clicking on "Google Search", the next action was to click on a link in the test results, however during playback this happens before the browser has loaded the results,
it stop after search value
here is the code
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=gbqfq</td>
<td>citibank india</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Citibank India: Bank Accounts, Credit Cards, Home / Personal Loans ...</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
if any can advise thanks
I've found it's better to use a click, and then have a waitForElementPresent for the next command to make sure the next page is loaded.
Klendathu
Why forms submited using get method is not working in opera browser?
<form method="get" action="">
I am submiting to same page
<form method="get" action="">
<table class="search_form_table" width="428" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td width="150">Order Number</td>
<td><input name="order_number" /></td>
</tr>
<tr>
<td>Start Date</td>
<td><input class="search_date_fields" name="date_from" /> End date : <input class="search_date_fields" name="date_to" /></td>
</tr>
<tr>
<td colspan="2" align="right"><input class="subimit_button search_button_width" type="submit" value="Submit" /></td>
</tr>
</table>
</form>
If this is the same problem I thought I had, it's not that GET doesn't work. It's because the browser hides the form name/value pairs in the query string in the Location bar. If you actually go to the location bar and hilite the URL that you submitted to, you'll see the form parameters in the query string. I hate this, but it is the way Opera does it. :-/
submitting GET forms certainly works in Opera. Copying this code to a file and submitting it creates exactly the same URL as in Chrome. Hence, your problem must be something else. Without more information it's impossible to tell what your problem really is.
I have a really odd situation going on on my local PC that I can not seems to resolve.
Recently I have been contacted to extend a classic ASP website that I wrote a few years back. I unpacked the code into a sub folder of wwwroot on my current machine running XP pro. It has never had any classic ASP sites running on it. I set up IIS and create an application and run the website on my localhost. The site renders correctly and appears to run fine. Except one thing... The post data seems to get lost.
I have entered Response.Write("[" & Request.Form & "]") at the top of one of my pages and just renders "[]". Can any one advise as to why I may be losing the form data? The website used to work fine on my last machine running XP Pro, as that is the machine I developed it on. What have I forgotten to set up?
The html form code looks like
<form name="frmAdminLogin" actionAdminLogin.asp" method="post" >
<input type="hidden" name="hidFormAction" value="frmAdminLogin" >
<table width="80%" border="0" cellspacing="3" cellpadding="0" >
<tr>
<td width="40%" align="right" valign="top" >Username: </td>
<td width="60%" align="left" valign="top" >
<input type="text" name="txtUsername" value="" size="25" maxlength="25" tabindex="1" class="TextBox" >
</td>
</tr>
<tr>
<td width="40%" align="right" valign="top" >Password: </td>
<td width="60%" align="left" valign="top" >
<input type="password" name="txtPassword" value="" size="25" maxlength="25" tabindex="2" class="TextBox" >
</td>
</tr>
<tr>
<td width="100%" colspan="2" align="center" valign="top" >
<input type="submit" name="btnLogIn" value="Log In" tabindex="3" class="Button" >
<input type="reset" name="btnReset" value="Reset" tabindex="4" class="Button" >
</td>
</tr>
</table>
</form>
It appears that it is not an IIS issue after all but an Internet Explorer issue. The post data is present when I use Opera Browser.
I think this is correct - there is some bug (feature?) of Internet Explorer which prevents form data being submitted if there is only a single form element. If you add a extra element (hidden field, it really doesn't matter) it should work properly.
I'll try to expand this comment when I get a chance but my work firewall is preventing my finding the blog posts which originally pointed me in the right direction.