bitlbee / bitlbee-facebook

Facebook protocol plugin for BitlBee
GNU General Public License v2.0
282 stars 43 forks source link

Sending image, video, audio and location #133

Open KamalGalrani opened 7 years ago

KamalGalrani commented 7 years ago

~~I am using the latest development branch I am no longer receiving links for any media attachment which I used to receive at some point. The debug shows the following json while receiving an image but no link shows up in irssi~~

{
  "deltas": [{
      "deltaNewMessage": {
        "messageMetadata": {
          "threadKey": {
            "otherUserFbId": ***************
          },
          "messageId": "mid.1487926837725:**********",
          "offlineThreadingId": *******************,
          "actorFbId": ***************,
          "timestamp": 1487926837725,
          "tags": ["source:chat:web"]
        },
        "attachments": [{
          "id": "****************",
          "mimeType": "image/jpeg",
          "filename": "********_****************_*********_n.jpg",
          "fbid": ****************,
          "imageMetadata": {
            "width": 332,
            "height": 237,
            "imageSource": 1,
            "renderAsSticker": 0
          }
        }]
      }
  }],
  "firstDeltaSeqId": 281,
  "lastIssuedSeqId": 281
}

Also I don't receive location messages sent by mobile app. I do receive stickers though.

Is there any way to send media and location messages so that they appear properly in messenger?

KamalGalrani commented 7 years ago

Fixed the receiving media messages in pull request #134

Yet to work on receiving location messages and need help for sending media and location messages.

dequis commented 7 years ago

Thanks for reporting this.

Also this is why you want different tickets for different issues. This is both an issue I introduced yesterday and a feature request.

dequis commented 7 years ago

I changed this ticket to be about only the sending part, given how you fixed what I broke yesterday with the receiving part. If there's anything about receiving that still doesn't work and should, open a new ticket.

KamalGalrani commented 7 years ago

Sure. I'll keep this in mind from next time

kragebein commented 6 years ago

Any updates to this? in regards to actually sending images?