컴

FaceBook 사진 올리면서 태그 같이 넣기

· 2013-11-23 (토) 11:03:24 · 4010
publish_stream 권한 필요.
<%=access_token%>는 미리 가져온 토큰.
target_id:to_id를 주석 해제하면 내 앨범이 아니라 친구 앨범에 추가됨. (동의 없이) - 1회만 해 본 거라 정확하지 않음
$는 제이쿼리
    function postToFeed(to_id,to_name,imgURL,message){
      $('#wait_div').html('담벼락에 게시하고 있습니다.').show()
    // 자기 담벼락에 사진 올리기 - 자동 (동의 절차 없음)
    FB.api('/photos','post',{
        message:$('#name').val()+'님이 '+to_name+'님에게 All New Style 2013 Spark를 타고 영화를 보러 가길 초대합니다.\n\n'+message,
        //target_id:to_id,  //친구에게 사진 올리기 (동의 절차 없음)
        uid:$('#id').val(),
        access_token:'<%=access_token%>',
        tags:[{
          tag_uid:to_id,
          x:20,
          y:40
        }],
        url:imgURL
      },
      function(response){
        if(!response || response.error){
          $('#wait_div').html('Error occured:'+response.error.message)
        } else {
          $('#wait_div').html('담벼락에 게시하였습니다.').show()
          $('#wait_div').html($('#wait_div').html()+'<br>Photo Post ID:'+response.id)
          $('#process_2').hide()
          if(auto_commit){
            $('#mobile').attr('class','')
            $('#form').submit()
            $('#process_4').show()
          }
          else{
            $('#process_3').show()
          }
        }
      }
    )
}
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
16-07-13 조회 2,159
16-07-12 조회 2,322
16-07-12 조회 2,352
16-07-11 조회 2,183
16-06-05 조회 2,891
16-06-03 조회 2,999
16-05-26 조회 2,919
15-09-22 조회 4,968
15-06-10 조회 4,809
14-10-25 조회 6,342
14-10-22 조회 8,969
14-09-21 조회 5,771
14-09-16 조회 5,052
14-08-22 조회 1.1만
14-08-13 조회 5,885
14-08-12 조회 5,424
14-08-12 조회 6,277
14-08-11 조회 6,912
14-06-12 조회 6,186
14-06-11 조회 5,089
14-05-09 조회 5,403
14-05-09 조회 6,363
14-05-09 조회 6,391
14-05-08 조회 5,725
14-04-17 조회 4,728
14-04-16 조회 4,557
14-04-15 조회 4,564
14-04-15 조회 4,519
14-04-15 조회 4,285
14-04-14 조회 4,263
14-04-14 조회 4,229
14-04-14 조회 4,614
14-04-14 조회 4,760
14-04-14 조회 4,745
14-04-13 조회 4,642
14-04-12 조회 4,206
14-04-12 조회 4,354
14-04-12 조회 4,463
14-04-11 조회 4,992
14-04-10 조회 4,719
14-04-10 조회 4,760
14-04-09 조회 4,912
14-04-09 조회 5,277
14-04-08 조회 6,941
13-10-30 조회 7,644
13-07-11 조회 5,106
13-03-28 조회 1.1만
13-02-27 조회 6,763
13-02-14 조회 5,579
13-01-10 조회 4,499
12-12-31 조회 5,071
12-12-20 조회 6,095
12-12-12 조회 5,254
12-12-07 조회 4,476
12-11-28 조회 4,828
12-11-22 조회 5,261
12-11-12 조회 5,628
12-09-22 조회 4,496
12-09-18 조회 4,684