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

· 12년 전 · 2027
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()
          }
        }
      }
    )
}
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 997
12년 전 조회 1,922
12년 전 조회 928
12년 전 조회 939
12년 전 조회 1,407
12년 전 조회 814
12년 전 조회 907
12년 전 조회 1,368
12년 전 조회 1,303
12년 전 조회 1,328
12년 전 조회 1,484
12년 전 조회 916
12년 전 조회 1,092
12년 전 조회 1,142
12년 전 조회 738
12년 전 조회 1,168
12년 전 조회 853
12년 전 조회 922
12년 전 조회 580
12년 전 조회 1,315
12년 전 조회 1,612
12년 전 조회 628
12년 전 조회 579
12년 전 조회 1,538
12년 전 조회 619
12년 전 조회 1,215
12년 전 조회 1,009
12년 전 조회 1,440
12년 전 조회 1,519
12년 전 조회 6,214
12년 전 조회 1,539
12년 전 조회 777
12년 전 조회 617
12년 전 조회 661
12년 전 조회 745
12년 전 조회 993
12년 전 조회 1,623
12년 전 조회 1,113
12년 전 조회 1,365
12년 전 조회 613
12년 전 조회 714
12년 전 조회 2,703
12년 전 조회 1,793
12년 전 조회 1,530
12년 전 조회 3,362
12년 전 조회 761
12년 전 조회 2,527
12년 전 조회 2,096
12년 전 조회 1,954
12년 전 조회 2,028
12년 전 조회 975
12년 전 조회 1,526
12년 전 조회 1,531
12년 전 조회 987
12년 전 조회 3,375
12년 전 조회 672
12년 전 조회 1,156
12년 전 조회 1,576
12년 전 조회 1,983
12년 전 조회 843
12년 전 조회 1,543
12년 전 조회 917
12년 전 조회 2,468
12년 전 조회 947
12년 전 조회 649
12년 전 조회 867
12년 전 조회 2,407
12년 전 조회 1,937
12년 전 조회 4,243
12년 전 조회 1,534
12년 전 조회 1,985
12년 전 조회 1,366
12년 전 조회 1,333
12년 전 조회 853
12년 전 조회 903
12년 전 조회 1,803
12년 전 조회 920
12년 전 조회 683
12년 전 조회 1,240
12년 전 조회 1,593
12년 전 조회 843
12년 전 조회 937
12년 전 조회 1,182
12년 전 조회 1,952
12년 전 조회 848
12년 전 조회 1,089
12년 전 조회 3,026
12년 전 조회 828
12년 전 조회 741
12년 전 조회 653
12년 전 조회 1,404
12년 전 조회 1,221
12년 전 조회 3,878
12년 전 조회 1,025
12년 전 조회 912
12년 전 조회 783
12년 전 조회 649
12년 전 조회 1,174
12년 전 조회 904
12년 전 조회 1,036
🐛 버그신고