Showing posts with label social. Show all posts
Showing posts with label social. Show all posts

Tuesday, August 4, 2020

How to Get a List of Facebook Fan Pages Sorted gy the Number of Likes

Top 500 of the world:
https://socialblade.com/facebook/top/500/likes

Social analyzer platform
(not free)
search top fb page by category and by country
example - top celebs in thailand:
(pay for more results, i think)
https://www.socialbakers.com/statistics/facebook/pages/total/thailand/celebrities

Friday, April 29, 2011

การแหกคุกทวิตเตอร์เวลาโดนขัง

twitter เขามี limit ของเขาซึ่งหากเรา tweet ถี่เกินไปเราจะโดนระงับการ tweet เป็นเวลาหลายชั่วโมงด้วยกันซึ่งทำให้ผู้ใช้บริการ twitter หลายๆคนไม่พอใจเนื่องจากเขาเองก็มิใช่ spammer ส่วนคนที่เจอ tweet รัวๆของเขาก็พร้อมใจมา follow เขาเอง แล้วงี้ twitter จะถือกรรมสิทธิ์อะไรมาตัดสินว่าใคร tweet ถี่เกินไปต้องโดนขัง

แต่บังเอิ้น บังเอิญ เรามี identi.ca ที่เรา link เข้ากับ twitter ทำให้ notice ที่เรา post ใน identi.ca จะถูกส่งไปเป็น tweet บน twitter แล้ววันนั้นที่เราโดนขังเราก็ไปนั่ง update notice ใน identi.ca แล้วจู่ๆเราก็สังเกตเห็นว่าข้อความที่เรา post ใน identi.ca ไปโผล่ใน twitter ทั้งๆที่เราโดนขังอยู่ เราเลยรีบกลับไปลอง tweet ดูปรากฎว่า tweet ได้เป็นปกติทันที... สงสัยจะเป็น bug ใน twitter... จุ๊ๆๆๆคนไทยทั้งหลายรู้แล้วก็อย่าไปบอกใครหละ ยิ่งพวกฝรั่งหัวทอง เดี๋ยวมันไปเล่าเป็นภาษาอังกฤษแล้วปวดหัว twitter จับได้ว่าเราแหกคุกจะซวยกันเป็นแถบๆ

Thursday, April 7, 2011

ลบ tweets เก่าของคุณ ด้วย TwitWipe!!!


การทิ้งข้อความ tweet ทุกอันของเราไว้บน server ของ twitter อาจไม่ใช่เรื่องที่ฉลาดนักสำหรับบางคน ถึงแม้ว่าการย้อนกลับไปดู tweet อันเก่าๆจะทำได้ยากขึ้นเพราะ twitter (และ facebook ก็ด้วย) จู่ๆก็เลิกใช้ระบบการแบ่งหน้าแบบ pagination แต่กลับทำเป็นปุ่ม view more ที่พอกดแล้ว ajax / javascript จะทำการโหลดข้อมูลเก่ามาเพิ่มที่ส่วนท้ายของหน้าเว็บเพจที่เรากำลังดูอยู่ไปเรื่อยๆ ซึ่งเมื่อมากถึงจุดหนึ่ง ram ของท่านก็อาจจะหมดและทำให้ท่านไม่สามารถดูย้อนหลังอีกต่อไปได้ ฉะนั้น

อย่างไรก็ตาม หากมีผู้ที่มีความอยากสู่รู้สู่เห็นในเรื่องของเราอย่างหาที่สุดมิได้ เขาก็อาจจะไปซื้อแรมมาให้มันมากพอสำหรับการย้อนอ่าน tweet ทั้งหมดของเราก็ได้ หรือหากเขามีความรู้ในการเขียนโปรแกรมสักเล็กน้อย เขาก็อาจจะเขียน script ที่ไปเรียกใช้ twitter api เพื่อทำการดาวน์โหลด tweet ย้อนหลังทั้งหมดของเราไปนอนอ่านเล่นก็เป็นไปได้อีก

เมื่อนึกได้ดังนี้ก็ลองไปค้นๆดูใน google ก็พบ TwitWipe ที่หน้าเว็บดูมีชาติตระกูลพอใช้ได้ ลองเข้าไปดู:

http://twitwipe.com

...​แต่ไม่กล้าใช้ ヾ(* ̄д ̄)ツ !!!

ก็ดูมันบอกว่าโห ลบทีเดียวหมดเบยแบบนี้ ใครมันจะกล้าใช้เล่า อย่างน้อยก็ควรกำหนดช่วงเพลาที่ต้องการจะลบได้จริงไหม...

Sunday, March 13, 2011

facebook's new photo viewer (theatre) - hate hate hate

those who hate fb's new photo viewer, you can disable it by installing greasemonkey (firefox addon) and a userscript:

http://userscripts.org/scripts/show/96773

Thursday, September 16, 2010

how to update facebook status via command line

Recently, I found a text-based twitter client named "twidge".  It allows me to tweet right from command line.  For example, if you want to do a hello world tweet, you run this:

% twidge update "hello world"

I then think it would be a good idea if I can do the same thing with facebook i.e. to update facebook status right from command line.  However, when I did search on google, I found nothing.

Well, actually, there is an indirect way by:
  1. Adding facebook application "Selective Tweet".
  2. With the same twitter account you use to add "Selective Tweet", whenever you append "#fb" to your tweet, that tweet will also appear on facebook status.
But for many personal reasons, I just dislike this method as the same thing will be put onto both twitter and facebook which is not always what I want.

So what if I want to do it directly...

Recently, I had a chance to try out the Perl module "WWW::Mechanize" - Handy web browsing in a Perl object.  It is a subclass of the well-known LWP::UserAgent module which is a User Agent module for Perl which we use to write robot, spider and such.

Here is the Perl script I use to update facebook status:

#!/usr/bin/perl

use WWW::Mechanize;

$mech = WWW::Mechanize->new;
$mech->agent_alias('Windows Mozilla');

$base_url = 'http://m.facebook.com';

# {{{ login
$mech->get($base_url);
$response = $mech->submit_form(
  fields => {
    email => 'your_email_address',
    pass => 'facebook_password'
  }
);
die $response->status_line unless $response->status_line;
# }}}
 
while (1) {
  print "What's on your mind? : ";
  $status = <STDIN>;
  $response = $mech->submit_form(
    fields => {
      status => $status
    }
  );
  die $response->status_line unless $response->status_line;
}

Here is what you will see when you run it:

unsigned_nerd@linuxsucks ~ % fbset
What's on your mind? : it's easier to update facebook status from command line

By the way, isn't it better if I use some Facebook API instead...?  Umm... maybe later.

Thursday, June 3, 2010

tircd - url shortening

In tricd, a cool twitter client, if you want to use the url shortening feature, you need to make sure you have Perl module:

  URI::Find

One possible way to install this Perl module is by:

  perl -MCPAN -e 'install URI::Find'

This module is used by tircd to parse URLs from our tweets.