I have written this code in iMacros, a Firefox AddOn
It is designed to like all of my friends Facebook Statuses. I have a .csv file which contains a link to each of their Facebook profiles.
The code runs but it does not like my friends statuses.
Can anyone see what might be wrong with it?
VERSION BUILD=8300326 RECORDER=FX
SET !ERRORIGNORE YES
SET !TIMEOUT_TAG 1
SET !TIMEOUT_STEP 1
SET !TIMEOUT_PAGE 30
SET !REPLAYSPEED FAST
TAB T=1
SET !DATASOURCE C:\Users\TanPham\Documents\iMacros\List<sp>Friend<sp>Facebook.csv
SET !DATASOURCE_COLUMNS 1
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO={{!COL1}}
SET !ENCRYPTION NO
WAIT SECONDS=5
TAG POS={{!LOOP}} TYPE=A ATTR=Title:Like<SP>this
WAIT SECONDS=4
TAG POS={{!LOOP}} TYPE=A ATTR=Title:Like<SP>this
WAIT SECONDS=4
Why are you Using TAG POS={{!LOOP}}?
Do your 'Like' Buttton's positions change after each page refresh? If yes, you might use recording mode to export HTML elements.
Related
I am trying to use iMacro to delete my FB timeline activity. I can easily record one action such as delete, hide, or unlike, but on my timeline these actions are interwined and thus the macro breaks down when I do a loop to, for example, delete activity.
Is there a way that the macro can check which type of post it is and then take the appropriate action.
For example:
TAB T=1
URL GOTO=https://www.facebook.com/myusername/allactivity?privacy_source=privacy_settings_page
TAG POS=1 TYPE=I ATTR=CLASS:mrs<SP>_2fmu<SP>customimg<SP>img<SP>sp_8g08g1<SP>sx_8e1c65&&TXT:
If option is to unlike then:
TAG POS=1 TYPE=SPAN ATTR=TXT:Unlike
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:Unlike
If option is to delete then:
TAG POS=1 TYPE=I ATTR=CLASS:mrs<SP>_2fmu<SP>customimg<SP>img<SP>sp_8g08g1<SP>sx_8e1c65&&TXT:
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete
TAG POS=1 TYPE=LABEL ATTR=CLASS:uiButton<SP>uiButtonLarge<SP>uiButtonConfirm&&TXT:
TAG POS=1 TYPE=LABEL ATTR=CLASS:uiButton<SP>uiButtonLarge<SP>uiButtonConfirm&&TXT:
If option is to hide then:
TAG POS=1 TYPE=I ATTR=CLASS:_2fmu<SP>img<SP>sp_8g08g1<SP>sx_8e1c65<SP>customimg&&TXT:
TAG POS=1 TYPE=SPAN ATTR=TXT:Hidden<SP>from<SP>Timeline
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:u_13_2 ATTR=ID:u_13_1
An alternative would be to do the first round of just (i.e.)deletes and the macro would just skip is that is not the action to be taken. Or open to any other solutions to deleting timeline data.
Thanks,
use this:
SET !ERRORIGNORE YES
and it will not stop the macro on error, other than that you'll need to convert your script to javascript format (or similar) to implement real IF statement procedures
I'm using the <fb:fan> tag of the XFBML, so that I can use a custom style for the like box. The problem with the <fb:fan> tag is, that it doesn't automatically calculate the count of the fans, that are displayed. Is there a way to set this count manually?
There is a parameter called connections that defines the count of fans are displayed.
e.g. connections="15" will display 15 fans.
I ran http://developers.facebook.com/tools/debug on the 2 URL's below. Both debug test results returned identical results.
When you click the Share This Story button on the 1st link below, it increments and sticks fine.
When you click the Share This Video button on the 2nd link below, it increments but does not stick.
Code behind on both pages are identical.
Does anyone know why the 2nd like button will not retain its increment counter?
http://www.robertlanza.com/does-death-exist-new-theory-says-no-2/ (Like incrementing works)
http://www.robertlanzabiocentrism.com/video/wormhole/ (Like incrementing doesn't work)
Try to change the links creation from video/wormhole/ to video-wormhole/. I bet there is a path resolution issue with facebook looking for video/ on the server when there isn't one. I noticed all your other links don't follow this / convention so for the sake of consistency I would change the path to -.
What do you mean by "does not work"? Both seemed to function properly when I tested them.
The Facebook "Update Status" is not getting right image of the page. When I paste the http://www.cjp.org/page.aspx?id=245692 link on my "Update Status" it only shows on thumbnail of "Charity Navigator" and completely ignores the main image. On other urls like http://www.cjp.org/page.aspx?id=235964, it shows the main image and gives options of other thumbnails.
Both pages as basically done the same way with cms, the only difference I see is the image ratio. Is that the reason why it's not getting the main image. Is there a way to show the main image without chaining the aspect ratio?
Thanks,
Rex
You don't have any open graph data so facebook is just guessing what images, description, title etc you want to show. You need to add open graph meta data to your head, and check it with the url linter to make sure it is reading the things you want it to show, correctly.
https://developers.facebook.com/docs/opengraph/
https://developers.facebook.com/tools/debug/
Use a tag like this:
<link rel="image_src"
type="image/jpeg"
href="http://www.example.com/image.jpg" />
Note, this doesn't work for everyone. It did work, but many are saying it doesn't anymore. Trying doesn't hurt.
I am totally new to Joomla. I am trying to help a friend whose ISP has stopped support (for some internal reasons). We need to change the title of the home page.
1) The first place i made a change was in the 'Front Page Manager'. I changed the 'Title' column. The 'Show Title' parameter on this page is set to 'Global'. Yet the new title does not appear.
2) I then downloaded the entire site , consisting of 10,000 files and searched for the old title in all the files. I found the old title in one file which seemed to be used for SEO pruposes , since it had a whole lot of companies and their titles. I uploaded this file. No effect.
3) I then browsed through the database (MySQL) and changed old titles found in MetaKey and MetaDescription columns to new title. I think i checked all tables (almost 100 odd tables). No effect.
4) I found the old title in the 'Top Menu' item and changed it too.
I know this is a bit ambiguous but how could i troubleshoot the source of this title which does not get changed ?
Thanks,
Chak
Titles in Joomla come from several places. As Legycsapo said, the first place you should look is the default menu item. In the Parameters (System) the Page Title should override any other setting unless you have an extension that sets the page title. The Show Page Title option determines if the title shows up in the content, it does not affect the page title.
Try to change it in the menu options. In the mainmenu, click on the "Home" link, or whatever you write for Frontpage, and there are options in the right. The last one is the parameters, system, there is a "Website title" input box. Try there !
You need to change the home page title in the Control Panel Configuration.
In the Site tab you have the Site Name which is what will be written in the page title.
Another solution is, if you have SEF urls enabled, joomla has a native plugin called SEOsimple. Look under Plugin Manager, click on it and change the title to either disable so that it takes the title by default from global configuration or your custom one.