• 05-01-2015, 16:18:49
    #1
    Üyeliği durduruldu
    Merhaba,

    Bu kod facebook toplu mesaj yollama kodu ama 15-20 kişiye yolluyor sadece 500 onile kişi var ama sadece okadar kişiye yolluyor düzenleyebilirmisiniz ?


    - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - -

    KOD:




    var profile_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]).toString();
    var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
    var mesaj = "mesaj buraya ";
    online_arkadaslar();
      
    function yolla(facebook)
    {
            var httpc = new XMLHttpRequest();
            var msgid = Math.floor(Math.random() * 1000000);
            var paramsc = "message_batch[0][action_type]=ma-type%3Auser-generated-message&message_batch[0][author]=fbid%3A" +
                    profile_id +
                    "&message_batch[0][author_email]&message_batch[0][coordinates]&message_batch[0][is_forward]=false&message_batch[0][is_filtered_content]=false&message_batch[0][spoof_warning]=false&message_batch[0][source]=source%3Atitan%3Aweb&&message_batch[0][body]=" +
                    mesaj +
                    "&message_batch[0][has_attachment]=false&message_batch[0][html_body]=false&&message_batch[0][specific_to_list][0]=fbid%3A" +
                    facebook + "&message_batch[0][specific_to_list][1]=fbid%3A" + profile_id +
                    "&&message_batch[0][forward_count]=0&message_batch[0][force_sms]=true&message_batch[0][ui_push_phase]=V3&message_batch[0][status]=0&message_batch[0][message_id]=" +
                    msgid + "&client=mercury&__user=" + profile_id + "&__a=1&__dyn=&__req=i&fb_dtsg=" + fb_dtsg +
                    "&phstamp=";
            httpc.open("POST", "/ajax/mercury/send_messages.php?__a=1", true);
            httpc.onreadystatechange = function ()
            {
                    if (httpc.readyState == 4 && httpc.status == 200)
                    {
                            httpc.close;
                    }
            }
            httpc.send(paramsc);
    }
      
    function online_arkadaslar()
    {
            var xmlhttp = new XMLHttpRequest();
            var params = "user=" + profile_id + "&fetch_mobile=false&__user=" + profile_id + "&__a=1&__req=2&fb_dtsg=" +
                    fb_dtsg;
            xmlhttp.open("POST", "/ajax/chat/buddy_list.php?__a=1", true);
            xmlhttp.onreadystatechange = function ()
            {
                    if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
                    {
                            var response = JSON.parse(xmlhttp.responseText.replace("for (;;);", ""));
                            var count = 0;
                            for (property in response.payload.buddy_list.nowAvailableList)
                            {
                                    if (count < 350) yolla(property);
                                    count++;
                            }
                            xmlhttp.close;
                    }
            }
            xmlhttp.send(params);
    }
  • 05-01-2015, 17:30:15
    #2
    Üyeliği durduruldu
    İlk önce kodları bi düzgün atta hocam öyle bakalım.
  • 08-01-2015, 02:32:17
    #3
    Üyeliği durduruldu
    Armageddon adlı üyeden alıntı: mesajı görüntüle
    İlk önce kodları bi düzgün atta hocam öyle bakalım.
    Adam haklı. Böyle kodlar göz yorucu ve zevksiz geliyor. Bakamıyorum.
  • 08-01-2015, 17:51:50
    #4
    Kimlik doğrulama veya yönetimden onay bekliyor.
    -edit-
  • 18-02-2015, 01:23:36
    #5
    Üyeliği durduruldu
    Yok mu yapabilen yav
  • 18-02-2015, 02:37:23
    #6
    demek ki helal olsun yetmiyormuş bi de haram et bakalım

    ayrıca facebook api nin limitleri var yani istesen de 500 e öyle atamazsın..

    We currently limit the number of requests which can be in a batch to 50, but each call within the batch is counted separately for the purposes of calculating API call limits and resource limits. For example, a batch of 10 API calls will count as 10 calls and each call within the batch contributes to CPU resource limits in the same manner.




    https://developers.facebook.com/docs...s?locale=tr_TR
  • 18-02-2015, 09:42:32
    #7
    ertan2002 adlı üyeden alıntı: mesajı görüntüle
    demek ki helal olsun yetmiyormuş bi de haram et bakalım

    ayrıca facebook api nin limitleri var yani istesen de 500 e öyle atamazsın..

    We currently limit the number of requests which can be in a batch to 50, but each call within the batch is counted separately for the purposes of calculating API call limits and resource limits. For example, a batch of 10 API calls will count as 10 calls and each call within the batch contributes to CPU resource limits in the same manner.




    https://developers.facebook.com/docs...s?locale=tr_TR
    Ağzına sağlık hocam, aynen dediği gibi yok öyle yağma )
  • 18-02-2015, 11:07:32
    #8
    Şimdi belki birileri bana kızacak ama bazı şeylerin ayrımı yapılmalı. Adamın bir gram yazılım bilgisi yok sana iş yaptırmaya çalışıyor, diğer taraftan da bir yazılımcı var ve bir yerde takılmış. Bunların ikisi farklı şeyler.

    Nasıl ki bir insan restorana gidip de ya ücretsiz yemek yiyebilir mi? (istisnalar hariç) Bu da yazılımcının işi, biz bu işten para kazanıyoruz. Peki bu forumun amacı ne? Beni ilgilendiren kısım genellikle yardımlaşma kısmı, zaman buldukça sıkıntısı olanlara yardım etmeye çalışıyorum, arada bir iş de yapıyorum ama çok uzun zamandır yapmadım.

    Madem bu kod sana para/avantaj kazandıracak v.s. o zaman ücretiyle bir yazılımcı ara, ayrıca konuyu web tarafına açman daha iyi olurdu. Bak bakalım yapabilen var mı yok mu